blanks in filenames
Jeremy Katz
katzj at linuxpower.org
Wed Nov 22 02:01:04 EST 2000
On Tuesday, November 21 2000, Björn Jacke said:
> When there is a blank in the name scp doesn't work correctly:
>
> bjacke at lamarr:~ > scp -v telefon.cgi lamarr:a\ directory/
> Executing: program /usr/bin/ssh host lamarr, user (unspecified), command
> scp -v -t ein directory/
> Enter passphrase for RSA key 'unon at rzstud1':
> scp: ambiguous target
> bjacke at lamarr:~ >
You need to double escape the space. Otherwise, your escaping only
affects the local shell and not the shell invoked on the remote machine.
So use something like
scp -v telefon.cgi lamarr:a\\\ directory/
Cheers,
Jeremy
--
Jeremy Katz
katzj at linuxpower.org | jlkatz at eos.ncsu.edu
http://linuxpower.org | Developer, NCSU Realm Kit for Red Hat Linux
GPG fingerprint: 367E 8B6B 5E57 2BDB 972A 4D73 C83C B4E8 89FE 392D
QOTD:
After years of research, scientists recently reported that there is,
indeed, arroz in Spanish Harlem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20001121/0c8d096f/attachment.bin
More information about the openssh-unix-dev
mailing list