Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Jun 2001 22:25:20 -0500
From:      seebs@plethora.net (Peter Seebach)
To:        hackers@freebsd.org
Subject:   Re: Fixing documented bug in env(1) 
Message-ID:  <200106020325.f523PK504364@guild.plethora.net>
In-Reply-To: Your message of "Fri, 01 Jun 2001 20:05:18 PDT." <20010602030518.E3CE63E32@bazooka.unixfreak.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20010602030518.E3CE63E32@bazooka.unixfreak.org>, Dima Dorfman write
s:
>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.

No.  The reason for "--" is that it's two of the *START* of an option.
env assignments don't *start* with =.

The most consistent thing here is "-- to separate parts of a command line".

>It's different from
>the others because it signifies the end of a different kind of
>"series".

Sure, but the user doesn't necessarily care.  Certainly, no one has ever
tried to use "==" to end any sequence of arguments anywhere; people use --
to end subsequences of arguments all the time.

-s

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?200106020325.f523PK504364>