From owner-freebsd-arch Wed May 8 13:11: 5 2002 Delivered-To: freebsd-arch@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 04B4C37B42F; Wed, 8 May 2002 13:05:11 -0700 (PDT) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.3/8.12.2) with ESMTP id g48K4wev073088; Wed, 8 May 2002 13:04:58 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.3/8.12.3/Submit) id g48K4wPO073087; Wed, 8 May 2002 13:04:58 -0700 (PDT) Date: Wed, 8 May 2002 13:04:58 -0700 From: "David O'Brien" To: Garance A Drosihn Cc: "Brian F. Feldman" , "J. Mallett" , arch@FreeBSD.ORG, Garrett Wollman Subject: Re: cvs commit: src/usr.bin/sed main.c sed.1 Message-ID: <20020508130458.B72921@dragon.nuxi.com> Mail-Followup-To: David O'Brien , Garance A Drosihn , "Brian F. Feldman" , "J. Mallett" , arch@FreeBSD.ORG, Garrett Wollman References: <200205080304.g4834BL42647@green.bikeshed.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from drosih@rpi.edu on Wed, May 08, 2002 at 02:32:28PM -0400 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [Bogus From: address, because people cannot be bothered to respect Reply-To:] On Wed, May 08, 2002 at 02:32:28PM -0400, Garance A Drosihn wrote: > This then suggests we need two command-flags, one which > always takes an argument and one which never takes one. > As to which-is-which, or what the implied argument is > for the flag which never takes an argument, I like -i > for the flag which never takes an argument, and having > -i mean the same as '-I ""', but I'd be equally happy > with any other combination just as long as we are not > adding a command-flag that takes an optional argument. Why do we need to waste two flags on this functionality? IF we are not going to accurately follow perl, then require "-i" to have an argument. The reason for allowing -i to not have an argument is because Perl does not require it. I have been shot down at having `sed' accurately reimplement this Perl functionality, so others can relax their optionless "-i" requirement. If ``sed -i"" foo'' works properly, people can just live with it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message