Fix --foo[=bar] parsing in _parse_help().
This commit is contained in:
parent
6e809d032c
commit
095b5a02d2
@ -748,7 +748,7 @@ _init_completion()
|
||||
_parse_help()
|
||||
{
|
||||
$1 ${2:---help} 2>&1 | sed -e '/^[[:space:]]*-/!d' -e 's|[,/]| |g' | \
|
||||
awk '{ print $1; if ($2 ~ /^-/) { print $2 } }' | sed -e 's|[<=].*||'
|
||||
awk '{ print $1; if ($2 ~ /^-/) { print $2 } }' | sed -e 's|[<=[].*||'
|
||||
}
|
||||
|
||||
# This function completes on signal names
|
||||
|
Loading…
x
Reference in New Issue
Block a user