This is the correct behavior.
Otherwise the following would not work:
scp host.com:dir/\* .
Remember scp on the other end runs in your shell. So you have to contend
with double escapes (same with rcp) to gain the behavior you want.
- Ben
On Wed, 24 Jul 2002, Lapo Luchini wrote:
> Please enlightnen me on a subject, which is easily explained by example
> (cyberone is a Cygwin1.3.12/WinXPpro and cyberx is a FreeBSD with latest
> openssh-portable installed):
>
> lapo at CYBERONE ~
> $ scp lapo at cyberx:Luth\'ol.pcg .
> bash: -c: line 1: unexpected EOF while looking for matching `''
> bash: -c: line 2: syntax error: unexpected end of file
>
> lapo at CYBERONE ~
> $ scp lapo at cyberx:Luth\\\'ol.pcg .
> Luth'ol.pcg 100% |*****************************| 2066
00:00
>
> I guess that the fact that command line is interpreted also on remote
> side should be hidden from the user... IMHO first command line should
> work and second one should not.
>
> Please notice also that I'm not subscribed to this ML.
> If this behaviour is intended, sorry for the message, but then I'd say
> it should th least noted in the "man" page that the command line
will be
> interpreted twice.
>
> OpenSSH in always better and better, keep up the good work =)
> Lapo
>
> --
> Lapo 'Raist' Luchini
> lapo at lapo.it (PGP & X.509 keys available)
> http://www.lapo.it (ICQ UIN: 529796)
>
> _______________________________________________
> openssh-unix-dev at mindrot.org mailing list
> http://www.mindrot.org/mailman/listinfo/openssh-unix-dev
>