From owner-freebsd-bugs Fri Oct 18 18:20: 7 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8731837B422 for ; Fri, 18 Oct 2002 18:20:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1299143EA3 for ; Fri, 18 Oct 2002 18:20:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9J1K4x3031324 for ; Fri, 18 Oct 2002 18:20:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9J1K4is031323; Fri, 18 Oct 2002 18:20:04 -0700 (PDT) Date: Fri, 18 Oct 2002 18:20:04 -0700 (PDT) Message-Id: <200210190120.g9J1K4is031323@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bruce Evans Subject: Re: bin/44212: Unify 'recursive' options -r and -R Reply-To: Bruce Evans Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/44212; it has been noted by GNATS. From: Bruce Evans To: Ernst de Haan 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