Re: Re: getopt and Solaris 10

Matthias Kurz <[email protected]> Tue, 10 May 2005 07:27:55 +0200
Newsgroups gmane.comp.lib.gnulib.bugs,gmane.comp.version-control.cvs.bugs,gmane.comp.gnu.core-utils.bugs
Message-ID <[email protected]>
On Mon, May 09, 2005, Paul Eggert wrote:

> Derek Price <[email protected]> writes:
>=20
>=20
> > +         myargv[[0]] =3D "conftest";
> > +         myargv[[1]] =3D "-+";
>=20
> This doesn't null-terminate myargv.

D'oh !

> But I still don't get why the change is needed.  It sounds like you're
> assuming Solaris 11 getopt might get fixed?  But even in that case,
> the current code will work, right, since it will use GNU getopt?  So
> this is just an optimization for the hypothetical case if Solaris 11
> getopt gets fixed?  In that case perhaps we should wait for Solaris 11
> and test it before installing this patch, as it's more likely to cause
> a bug than to fix one.

Well, it might still fail on other OSes, that also do not use GNU getopt.
They do probably also not have the getopt_clip. I'll check this on IRIX,
today.


   (mk)

--=20
Matthias Kurz; Fuldastr. 3; D-28199 Bremen; VOICE +49 421 53 600 47
  >> Im pr=E4motorischen Cortex kann jeder ein Held sein. (bdw) <<