projects
/
gsu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix gsu_cword_is_option_parameter().
[gsu.git]
/
subcommand
diff --git
a/subcommand
b/subcommand
index b3dc0493905a2eb0a0bcb016bc99ed8e4799d981..c04f23feeb5ae018ce0e0ae1fea46efe20318b40 100644
(file)
--- a/
subcommand
+++ b/
subcommand
@@
-510,7
+510,7
@@
gsu_cword_is_option_parameter()
opt="${opts:$i:1}"
[[ "${opts:$(($i + 1)):1}" != ":" ]] && continue
let i++
opt="${opts:$i:1}"
[[ "${opts:$(($i + 1)):1}" != ":" ]] && continue
let i++
- [[
"$prev" != "-$opt"
]] && continue
+ [[
! "$prev" =~ ^-.*$opt$
]] && continue
result="$opt"
return
done
result="$opt"
return
done