Rob Juergens writes: > 3. Guideline 16 states that the form "--option=" results in the null string > as the argument. This should read "the empty string", and getopt() should > behave by returning the empty string. This is because there is no way to > indicate a null string if a user uses the short-option. The behavior of <-f > ""> and <--filename=> should be the same. Prior usage is that getopt() > returning a short-option value always implies that optarg is non-null. To > allow optarg to have a null value will break existing applications.
The document really does mean "an empty string" here. There's no plausible way to get the support functions to return an actual NULL, nor is anybody contemplating changing getopt() that way. (Nor could we ... it's set by standard.) -- James Carlson, KISS Network <james.d.carlson at sun.com> Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
