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/6863] New: allow disabling getopt_long --long-argument abbreviation matching


getopt_long (man getopt(3)) should implement this feature from man
Getopt::Long.3perl:

       auto_abbrev Allow option names to be abbreviated to uniqueness.
                   Default is enabled unless environment variable
                   POSIXLY_CORRECT has been set, in which case
                   "auto_abbrev" is disabled.

I.e., without a way to disable abbreviations, hearsay is created in
user communities about what options exist! Please see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=497330

With no way of turning on strict checking one's users will come up
with several different versions of what they think one's options are.

Also if one has an option e.g., --purge-unused and next year adds a
new --purge, those users who found --purge worked fine in their
scripts will be in for a surprise as now something different happens.

And odd how POSIXLY_CORRECT only affects the perl but not glibc's
getopt_long in this case.

-- 
           Summary: allow disabling getopt_long --long-argument abbreviation
                    matching
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: jidanni at jidanni dot org
                CC: glibc-bugs at sources dot redhat dot com


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

------- 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]