scp bug: escaped characters in files prevent copying

Ruben ruben at ugr.es
Tue Sep 7 03:14:21 EST 2004


When copying a file with an escaped character, scp removes the escaping 
character before
sending to the host.
Is there a way to circunvent this?
Some examples follow (linux machines)

A:  touch file\(new\)
B: scp user at A:file\(new\) .
user at A password:
bash: -c: line 1: syntax error near unexpected token `('
bash: -c: line 1: `scp -f ('

A: touch file\ 1
B: scp user at A:file\ 1 .
user at A password:
scp: A: No such file or directory
scp: B: No such file or directory

B: scp user at A:file\\ 1 .
user at A password:
bash: -c: line 3: syntax error: unexpected end of file
cp: cannot stat `B': No such file or directory




More information about the openssh-unix-dev mailing list