Re: ed package
On Mon, Feb 04, 2002 at 11:59:15PM +1100, matthew green wrote:
>
> > > Also a BSD-licensed getopt (and getopt_long) is available in the NetBSD
> > > libc.
> >
> > But behaves differently to GNU getopt_long, as regards its handling of
> > the arguments '-' and '--'
> >
> > it does? this sounds like a bug. it should be compatible.
>
> Clearly it would be nice if they were compatible; OTOH persuading
> either set of authors that they should use the other set's behaviour
> sounds like a loosing battle to me.
>
>
> please tell me the differences; i can probably get the netbsd one
> changed. it is *supposed* to be compatible. it was written so that
> we would have a getopt_long() that wasn't GPLed. any difference is
> a bug and should be treated as such...
As far as I can tell, the main difference is that "-" (bare) is considered
illegal in the NetBSD setup. I don't have any easy way to test what the
difference in "--" is, though long usage would *imply* that it means "end
parsing of all arguments here" in the GNU world.
--
***************************************************************************
Joel Baker System Administrator - lightbearer.com
lucifer@lightbearer.com http://users.lightbearer.com/lucifer/
Reply to: