Bug 1219795

Summary: scp bash-completion remote paths with spaces problem
Product: [openSUSE] openSUSE Tumbleweed Reporter: John Veness <john-susecom>
Component: BasesystemAssignee: Hans Petter Jansson <hpj>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description John Veness 2024-02-10 14:49:39 UTC
I am using Tumbleweed on my client and Leap 15.5 on my server. I have setup passwordless ssh login (i.e. using an entry in .ssh/authorized keys on the server) between my client and my server.

I have the following folder on my server: "Example Folder" (without quotes), and a file called "filename.txt" (without quotes) on my client.

On my client, I type:

   scp filename.txt username@serveraddress:Exa<TAB>

(where <TAB> means I press the TAB key on the keyboard).

Expected result:

   scp filename.txt username@serveraddress:Example\ Folder/

Observed result:

   scp filename.txt username@serveraddress:Example\\\ Folder/

If I press return with the incorrect/observed output, I get an error:

   scp: dest open "Example\\ Folder/": Failure
   scp: failed to upload file filename.txt to Example\\ Folder/