From owner-freebsd-current Thu Nov 21 12:27:33 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B593737B401; Thu, 21 Nov 2002 12:27:31 -0800 (PST) Received: from HAL9000.homeunix.com (12-232-220-15.client.attbi.com [12.232.220.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id E52BD43E91; Thu, 21 Nov 2002 12:27:30 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id gALKRUm9005596; Thu, 21 Nov 2002 12:27:30 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id gALKRTXO005595; Thu, 21 Nov 2002 12:27:29 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Thu, 21 Nov 2002 12:27:29 -0800 From: David Schultz To: Tim Robbins Cc: Alexander Leidinger , Garrett Wollman , freebsd-current@FreeBSD.ORG Subject: Re: Asking for tester (small patch to chown(8)/chgrp(1)) Message-ID: <20021121202729.GA5473@HAL9000.homeunix.com> Mail-Followup-To: Tim Robbins , Alexander Leidinger , Garrett Wollman , freebsd-current@FreeBSD.ORG References: <200211161129.gAGBTKHJ033124@lurza.secnetix.de> <20021117155159.44aeae5f.Alexander@Leidinger.net> <200211181807.gAII7u0w015430@khavrinen.lcs.mit.edu> <20021119182700.GA3030@HAL9000.homeunix.com> <20021120132743.5a46abbe.Alexander@Leidinger.net> <20021121152158.A56883@dilbert.robbins.dropbear.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021121152158.A56883@dilbert.robbins.dropbear.id.au> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Tim Robbins : > On Wed, Nov 20, 2002 at 01:27:43PM +0100, Alexander Leidinger wrote: > > > On Tue, 19 Nov 2002 10:27:00 -0800 > > David Schultz wrote: > > > > > > > I'm concerned about the used character: "-r" is similiar to "-R" > > > > > > > > Yes, `-r' would be a very poor choice for the reason you state. > > > > > > Agreed, but the precedent has already been set by touch(1) and > > > truncate(1). If we're going to get it wrong some of the time, we > > > might as well be consistent about it. > > > > When we don't look at the fact that neither touch nor truncate operate > > recursivly... what about changing touch and truncate to allow the > > proposed -c (or -i) too and mark -r as deprecated (if it isn't covered > > by a standard)? > > I'd really rather that we didn't change this at all, even if it seems > "inconsistent". Changing it would just lead to more confusion. > > I am also against adding new options to chown to copy ownership from > existing files. > > Copy ownership: chown `stat -f%Su file1` file2 > Copy group: chgrp `stat -f%Sg file1` file2 > Copy both: chown `stat -f%Su:%Sg file1` file2 > > These could easily be made into shell functions or whatever... Admittedly it *is* creeping featurism, but there's already creeping featurism all over the place if you're going to be that strict about it. You might as well reimplement ls(1) as a shell script and remove 30 of its 33 documented options. I think -r is a specific case that happens to be useful and convenient for chown. Most of this discussion has been bogged down in the choice of option name, which is really silly. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message