[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Is this a bug or a feature?

From: Stefan Sperling <stsp_at_elego.de>
Date: Tue, 14 Jul 2009 16:39:24 +0100

On Tue, Jul 14, 2009 at 10:32:14AM -0500, Ryan Schmidt wrote:
> On Jul 14, 2009, at 07:35, Les Mikesell wrote:
>
> > Rsync probably has the handiest syntax, using a trailing / to
> > control what happens to the target.
>
> Gosh, to me, rsync's use of the trailing slash in this way is the
> single most confusing thing I think I've encountered on the command
> line.

FreeBSD's cp does it, too, and it confused me as well :)

     -R If source_file designates a directory, cp copies the directory and
           the entire subtree connected at that point. If the source_file
           ends in a /, the contents of the directory are copied rather than
           the directory itself.

Does not play nice with auto-completion of some shells (where directories
often get a slash appended by default).

Stefan
Received on 2009-07-14 17:40:24 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.