[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#352139: getopt optional arg does not work as documented



tag 352139 wontfix
thanks

> However, this does not seem to be the case. 

Actually it works quite similar.

> When run: 
>   troyh@me:/tmp$ a.out -a
>   a arg is: (null)

Correct behaviour.

$ ./a.out -afoo
a arg is: foo


>   troyh@me:/tmp$ a.out -a hello
>   a arg is: (null)

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.

Helmut

Attachment: signature.asc
Description: Digital signature


Reply to: