Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Oct 2002 18:20:04 -0700 (PDT)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/44212: Unify 'recursive' options -r and -R
Message-ID:  <200210190120.g9J1K4is031323@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/44212; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
To: Ernst de Haan <znerd@FreeBSD.ORG>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/44212: Unify 'recursive' options -r and -R
Date: Sat, 19 Oct 2002 11:29:46 +1000 (EST)

 On Fri, 18 Oct 2002, Ernst de Haan wrote:
 
 > >Description:
 > It would be nice if all tools in the base system that have a 'recursive' option
 > would all support the same argument for this.
 >
 > The scp and ls commands use -r while cp uses -R.
 
 ls actually uses -R.  cp also has a -r option which is undocumented except
 to strongly discourage it.
 
 > This would just be a nice improvement, IMHO. If it's not possible because of
 > POSIX rules or anything, then tough luck.
 
 POSIX utilities mostly use -R [-H | -L | -P] except for backwards
 compatibility support.  Unfortunately, cp -r is still standard now
 more than 10 years after it was strongly discouraged in BSD (in
 FreeBSD-1.1.5, cp's -r option was completely undocmented).
 
 I think the only problems here are that rcp still only has cp's broken -r
 option more than 10 years after it was strongly discouraged, and scp is
 too compatible with rcp.
 
 Bruce
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210190120.g9J1K4is031323>