diff --git a/etc/dashdash.bash_completion.in b/etc/dashdash.bash_completion.in index dc33309..ab3048d 100644 --- a/etc/dashdash.bash_completion.in +++ b/etc/dashdash.bash_completion.in @@ -193,7 +193,7 @@ function _{{name}}_completer { done elif [[ $i -lt $COMP_CWORD && -n "$arg" ]] && $(echo "$allsubcmds" | grep -w "$arg" >/dev/null); then trace " complete subcmd: recurse _dashdash_complete" - _dashdash_complete $(( $i + 1 )) "${context}__${arg/-/_}" + _dashdash_complete $(( $i + 1 )) "${context}__${arg//-/_}" return else trace " not an opt or a complete subcmd"