From owner-freebsd-hackers Fri Jun 1 20: 5:21 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id 4847537B422 for ; Fri, 1 Jun 2001 20:05:19 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from hornet.unixfreak.org (hornet [63.198.170.140]) by bazooka.unixfreak.org (Postfix) with ESMTP id E3CE63E32; Fri, 1 Jun 2001 20:05:18 -0700 (PDT) To: seebs@plethora.net (Peter Seebach) Cc: hackers@FreeBSD.ORG Subject: Re: Fixing documented bug in env(1) In-Reply-To: <200106011638.f51GcR524864@guild.plethora.net>; from seebs@plethora.net on "Fri, 01 Jun 2001 11:38:27 -0500" Date: Fri, 01 Jun 2001 20:05:18 -0700 From: Dima Dorfman Message-Id: <20010602030518.E3CE63E32@bazooka.unixfreak.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG seebs@plethora.net (Peter Seebach) writes: > In message <20010601093521.B4306@dragon.nuxi.com>, "David O'Brien" writes: > >On Thu, May 31, 2001 at 09:29:38PM -0700, Dima Dorfman wrote: > >> Although this is a documented shortcoming, it's quite unnecessary > >> given how easy it is to fix it. Any objections to allowing '--' to > >> mean "end of env. variable assignments"? > > >The orthoginal way (with grep, mv, et. al.) would be to use '==', not > >'--' as that is the problematic character. > > Principle of least astonishment says that, sinec everyone else uses "--" to > indicate the end of a series of "options", that's what env should do too. But this isn't terminating the end of a series of "options"; it's terminating a series of assignments, and since env(1) detemines whether an argument is an assignment or not by whether it has a '=' in it, it makes sense to use '==' as David suggests. It's different from the others because it signifies the end of a different kind of "series". Dima Dorfman dima@unixfreak.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message