Date: Fri, 01 Jun 2001 20:05:18 -0700 From: Dima Dorfman <dima@unixfreak.org> To: seebs@plethora.net (Peter Seebach) Cc: hackers@FreeBSD.ORG Subject: Re: Fixing documented bug in env(1) Message-ID: <20010602030518.E3CE63E32@bazooka.unixfreak.org> In-Reply-To: <200106011638.f51GcR524864@guild.plethora.net>; from seebs@plethora.net on "Fri, 01 Jun 2001 11:38:27 -0500"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010602030518.E3CE63E32>