dropbear scp and double escaping when spaces in path

Yvon Thoraval yvon.thoraval at gmail.com
Sun Aug 31 16:54:59 WST 2008


Hey all,

I've remote file names including spaces, like :

/mnt/fat/iTunes/Blues/03_07 Why My Baby.mp3

then, i've tried to doubly escape like that :

$ scp -P 2222 root at 169.254.0.2:"/mnt/fat/iTunes/Blues/03_07\ Why\ My\
Baby.mp3" .

and got :
scp: /mnt/fat/iTunes/Blues/03_07\: No such file or directory
scp: Why\: No such file or directory
scp: My\: No such file or directory
scp: Baby.mp3: No such file or directory

i got the same too using :

$ scp -P 2222 root at 169.254.0.2:'/mnt/fat/iTunes/Blues/03_07\ Why\ My\
Baby.mp3' .

what sounds strange to me is that the escape character "\" is taken as
the right char and not the following space...

if i escape the "\" char, no diff...

it seems that due to dropbear and not to busybox because, for example,
whe logged using dropbearmulti ssh, i can do :

$ ls -al "/mnt/fat/iTunes/Blues/03_07\ Why\ My\ Baby.mp3"

here the "\ " is correctly understood

my local ssh is OpenSSH over MacOS X 10.4.11

best,
-- 
yvon



More information about the Dropbear mailing list