🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.announce
Article #2577

Poll: syntax of long options

#2577
From: Richard Stallman
Date: Mon, 21 Oct 1991 20:22
34 lines
1833 bytes
We have been implementing long-named options in GNU utilities
with `+' as the delimiter.  For example,

   diff +context=2 +new-file +ignore-case foo bar

It turns out this conflicts with the POSIX utility syntax spec.
The POSIX committee refuses to change the spec.

The GNU project has already declared its independence from POSIX and
we don't have to fit the spec.  We provide an alternate mode which
supports the standard (by disabling long options), and that is
sufficient.  (Of course, people with any sense won't actually use this
mode.)

But if we can conveniently support the standard, I think that would be
a good thing to do.

We could make the long options fit in with the spec by changing
the syntax to use `--' as the delimiter, like this:

   diff --context=2 --new-file --ignore-case foo bar

Do you think we should make this change?

`-' followed by any other punctuation character would also fit with
the POSIX spec.  Is there any other punctuation character you think we
should use?

If you explain the reasons for your preference, that will help me
understand how the choices affect users.


Please don't send your reply to me.  Send it to
long-option-poll@gnu.ai.mit.edu.
Technical Details
Message-ID: <9110220422.AA04988@mole.gnu.ai.mit.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!gnu.ai.mit.edu!rms

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fba7b,28d3a270a668105f,start
X-Google-Attributes: gidfba7b,public
X-Google-ArrivalTime: 1991-10-21 13:22:41 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!gnu.ai.mit.edu!rms
From: rms@gnu.ai.mit.edu (Richard Stallman)
Newsgroups: gnu.announce
Subject: Poll: syntax of long options
Message-ID: <9110220422.AA04988@mole.gnu.ai.mit.edu>
Date: 21 Oct 91 20:22:41 GMT
Sender: gnulists@ai.mit.edu
Reply-To: long-option-poll@gnu.ai.mit.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 34
Approved: info-gnu@prep.ai.mit.edu