scp does a local copy when ommiting :

Christian Gut cycloon at
Wed Sep 1 15:57:51 EST 2004

On Wed, 2004-09-01 at 00:05, Damien Miller wrote:
> > If you forget to add the : after the hostname you want to copy a file
> > to, then scp does a simple local copy. This is quiet confusing if you
> > dont notice it:
> > 
> > "scp foo.txt" (copies the file to remote homedir)
> > "scp foo.txt" (creates the new file
> > 
> > I don't know if this behaviour is intended or even needed, but if not I
> > would be glad if this could be fixed to prevent some mistakes.
> This would be a major change to scp's argument parsing - something we
> don't want to do. I'm sure that there are scripts out there that depend
> on this behaviour (which derives from 20+ year old rcp).

Well, I nearly expected something like this. Its just so annoying.. But
thanks for your reply anyway.

Christian Gut <cycloon at>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : 

More information about the openssh-unix-dev mailing list