getops: make --a-long option work again
PATCH 1/1 getops: make --a-long option work again
Add back a character lost in earlier change.
Regression-from: d27f5fe770025e456fbd33b87a96968f34c455ed
Signed-off-by Sami Kerola <[email protected]>
--- misc-utils/getopt-parse.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
misc-utils/getopt-parse.bash +1 -1
@@ -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
Signature · 1 line
2.13.0
Quoted 2 lines · Sami Kerola
misc-utils/getopt-parse.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com