file name handling "bug" in scp?

stdout azi maillists.stdout at
Wed Jul 27 21:08:18 EST 2005

OK, let me mention my issue  :-)

$scp foo.pdf azi at LALALALA
cp : cannot stat `azi at': No such file or directory

Now, the file LALALALA is created and has the same content that foo.pdf

$ls -al
-rw-r--r--    1 azi      users           101 Aug  2 13:03 foo.pdf
-rw-r--r--    1 azi      users           101 Aug  2 13:03 LALALALA

On 7/27/05, Bob Proulx <bob at> wrote:
> Evaldo Gardenali wrote:
> > I think I found a small filename handling issue in scp:
> > [...concerning special shell characters not being escaped and files
> > that contain those characters causing trouble...]
> I suggest you use rsync with ssh to copy files in this instance.  The
> remote shell only invokes the other half of the rsync program.  And
> after that the shell is not involved in the transfer.
> Bob
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at

More information about the openssh-unix-dev mailing list