This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/5762] getopt blank option


------- Additional Comments From ebb9 at byu dot net  2008-02-14 13:29 -------
The problem is that when getopt parses '- ' as an invalid option, the error
message does not do any quoting to make it obvious what went wrong, and instead
leaves trailing blanks on the line.  Compare:

$ cut -q
cut: invalid option -- q
Try `cut --help' for more information.
$ cut '- '
cut: invalid option --  
Try `cut --help' for more information.

Perhaps the message "%s: invalid option -- %c" should be changed to "%s: invalid
option -- `%c'".


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5762

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]