08c3a6
commit 31af92b9c8cf753992d45c801a855a02060afc08
08c3a6
Author: Siddhesh Poyarekar <siddhesh@sourceware.org>
08c3a6
Date:   Wed May 4 15:56:47 2022 +0530
08c3a6
08c3a6
    manual: Clarify that abbreviations of long options are allowed
08c3a6
    
08c3a6
    The man page and code comments clearly state that abbreviations of long
08c3a6
    option names are recognized correctly as long as they are unique.
08c3a6
    Document this fact in the glibc manual as well.
08c3a6
    
08c3a6
    Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
08c3a6
    Reviewed-by: Florian Weimer <fweimer@redhat.com>
08c3a6
    Reviewed-by: Andreas Schwab <schwab@linux-m68k.org>
08c3a6
    (cherry picked from commit db1efe02c9f15affc3908d6ae73875b82898a489)
08c3a6
08c3a6
diff --git a/manual/getopt.texi b/manual/getopt.texi
08c3a6
index 5485fc46946631f7..b4c0b15ac2060560 100644
08c3a6
--- a/manual/getopt.texi
08c3a6
+++ b/manual/getopt.texi
08c3a6
@@ -250,7 +250,8 @@ option, and stores the option's argument (if it has one) in @code{optarg}.
08c3a6
 
08c3a6
 When @code{getopt_long} encounters a long option, it takes actions based
08c3a6
 on the @code{flag} and @code{val} fields of the definition of that
08c3a6
-option.
08c3a6
+option.  The option name may be abbreviated as long as the abbreviation is
08c3a6
+unique.
08c3a6
 
08c3a6
 If @code{flag} is a null pointer, then @code{getopt_long} returns the
08c3a6
 contents of @code{val} to indicate which option it found.  You should