-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthias Kurz wrote:

>Hi.
>
>One more clarification. Maybe one or the other missed my last comments
>on <https://ccvs.cvshome.org/issues/show_bug.cgi?id=248>. It was me,
>who introduced the "'+' myth".


Well, it is not a myth.  I studied the test program and output you sent
me, and Solaris does, indeed, treat the initial "+" as an option rather
than a request for getopt() semantics.

>I "analysed" the problem wrong in the
>beginning. It is not exactly the "+" that makes the problem, but the
>fact, that the Solaris getopt refuses to accept a zero value on optind.
>When "optind==0", the Solaris getopt returns -1 immediately, leaving
>optind==0. W


I did read this correctly in your report.  If anyone else sees a need
for an actual test for correct optind=0 behavior, then they are welcome
to write one, but I decided the point was moot at the moment since
detecting the "+" bug, just as valid as a means of selecting the GNU
getopt() over the system one, was sufficient to avoid encountering any
other bugs in the Solaris getopt().

Cheers,

Derek
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCf5lsLD1OTBfyMaQRAiT1AJ9SOugiUFKjruvZOCi23ko9wLqGLwCg2S/R
DTImJNqzmHIonAUGmka+CNg=
=OKfo
-----END PGP SIGNATURE-----




_______________________________________________
Bug-cvs mailing list
Bug-cvs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-cvs

Reply via email to