BUG: scp -r follows symlinks

Ben Lindstrom mouring at etoh.eviladmin.org
Wed Jan 7 04:14:36 EST 2004


On Tue, 6 Jan 2004, Bob Proulx wrote:

> Edward S. Peschko wrote:
> > No, not if you make the flag an optional one that doesn't exist right
> > now.
>
> > scp -n -r user at host:/directory /directory2
>
> Both rsync and GNU cp both handle symlinks as symlinks when given the
> '-a' option.  It would be easier on users to keep consistent with
> them.
>

And when did GNU become the standard that we all live in?

OpenBSD:

SYNOPSIS
     cp [-R [-H | -L | -P]] [-fip] source_file target_file
     cp [-R [-H | -L | -P]] [-fip] source_file ... target_directory


FreeBSD:

SYNOPSIS
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file target_file
     cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] source_file ...
	target_directory


I'm sorry but scp is *DEAD*.  It is there for historical reasons.  GET
OVER IT.

- Ben




More information about the openssh-unix-dev mailing list