Skip to contentSkip to conversation

getops: make --a-long option work again

PATCH Applied Sami Kerola 2 participants 2 messages May 16, 2017 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 getops: make --a-long option work again

Add back a character lost in earlier change.

Regression-from: d27f5fe770025e456fbd33b87a96968f34c455ed

---
 misc-utils/getopt-parse.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
misc-utils/getopt-parse.bash +1 -1
index 348c445a4..db8bf6b59 100644
@@ -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
maintainer Applied
#1 lore raw
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