Subject: Re: Switching from old-style getopt to new-style one
To: Hubert Feyrer <>
From: Thomas Klausner <>
List: tech-userlevel
Date: 11/08/2000 13:59:52
Mutt made me believe that Hubert Feyrer wrote:
> On Fri, 3 Nov 2000, Thomas Klausner wrote:
> > Yes, but that could easily be fixed by adding '+' as the first
> > character to the options string. And I'd have fixed the in-tree
> > programs for this, of course.
> Please note that this "+"-thing makes our sources less portable (unless I
> missed getopt specifying this behaviour). This will bite people starting
> new ports on non-NetBSD platforms, etc.

It's not critical per se, because if the native getopt version doesn't
know what '+' does, the program will just accept '-+' additionally,
and not know what to do with it -- but there should be no program
calling it with '-+', since it's not a valid option.


Thomas Klausner -
I think...I think it's in my basement. Let me go upstairs and check.
 -- M.C. Escher (1898-1972)