tags 352139 fixed-upstream
thanks
Helmut Grohne wrote:
> tag 352139 -wontfix
> reassign 352139 manpages-dev
> thanks
>
>> Now. This case is difficult. The string "hello" could also be just a
>> normal filename argument. I think the glibc handles this case correctly
>> and thus mark the bug as wontfix.
>
> Actually it would be even better if the documentation could be adapted.
> Thanks to Aurelien Jarno for pointing this out.
>
> Helmut Grohne
Gidday from the upstream man-pages maintainer...
The upstream man page says:
Two colons mean an option takes an
optional arg; if there is text in the current argv-ele-
ment, it is returned in optarg, otherwise optarg is set
to zero.
This seems reasonably clear to me: "the *current* argv-element". So the
man page seems to me to clearly say that /-afoo/ will work, but /-a foo/
will not, because in the latter case "foo" is not in the "current" argv
element.
Nevertheless, I've added a few words to make the point crystal clear:
Two colons mean an option takes an
optional arg; if there is text in the current argv-ele-
ment (i.e., in the same word as the option name itself,
for example, "-oarg"), then it is returned in optarg,
otherwise optarg is set to zero.
Cheers,
Michael
--
Michael Kerrisk
maintainer of Linux man pages Sections 2, 3, 4, 5, and 7
Want to help with man page maintenance? Grab the latest tarball at
http://www.kernel.org/pub/linux/docs/manpages/
read the HOWTOHELP file and grep the source files for 'FIXME'.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]