From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15233 invoked by alias); 14 Feb 2008 13:30:23 -0000 Received: (qmail 14917 invoked by uid 48); 14 Feb 2008 13:29:38 -0000 Date: Thu, 14 Feb 2008 13:30:00 -0000 Message-ID: <20080214132938.14916.qmail@sourceware.org> From: "ebb9 at byu dot net" To: glibc-bugs@sources.redhat.com In-Reply-To: <20080214081935.5762.jidanni@jidanni.org> References: <20080214081935.5762.jidanni@jidanni.org> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/5762] getopt blank option X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2008-02/txt/msg00053.txt.bz2 ------- 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.