]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
getops: make --a-long option work again
authorSami Kerola <kerolasa@iki.fi>
Tue, 16 May 2017 07:37:41 +0000 (08:37 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 16 May 2017 12:54:41 +0000 (14:54 +0200)
Add back a character lost in earlier change.

Regression-from: d27f5fe770025e456fbd33b87a96968f34c455ed
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/getopt-parse.bash

index 348c445a4373ff44d6f6ba88e03b6380311697d0..db8bf6b59410e69b45b19330fe86cb537554b8bc 100644 (file)
@@ -20,7 +20,7 @@
 # Note that we use "$@" to let each command-line parameter expand to a
 # separate word. The quotes around "$@" are essential!
 # We need TEMP as the 'eval set --' would nuke the return value of getopt.
-TEMP=$(getopt -o 'ab:c::' --long '-long,b-long:,c-long::' -n 'example.bash' -- "$@")
+TEMP=$(getopt -o 'ab:c::' --long 'a-long,b-long:,c-long::' -n 'example.bash' -- "$@")
 
 if [ $? -ne 0 ]; then
        echo 'Terminating...' >&2