bzip2, gzip, python, sysbench: Quote command argument to _parse_help().
This commit is contained in:
parent
92ff96417d
commit
c3bddc49e0
@ -14,7 +14,7 @@ _bzip2()
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ "$cur" == -* ]]; then
|
if [[ "$cur" == -* ]]; then
|
||||||
local helpopts=`_parse_help ${words[0]}`
|
local helpopts=$( _parse_help "$1" )
|
||||||
COMPREPLY=( $( compgen -W "${helpopts//#/} -2 -3 -4 -5 -6 -7 -8 -9" \
|
COMPREPLY=( $( compgen -W "${helpopts//#/} -2 -3 -4 -5 -6 -7 -8 -9" \
|
||||||
-- "$cur" ) )
|
-- "$cur" ) )
|
||||||
return 0
|
return 0
|
||||||
|
@ -14,8 +14,7 @@ _gzip()
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ "$cur" == -* ]]; then
|
if [[ "$cur" == -* ]]; then
|
||||||
local helpopts=`_parse_help ${words[0]}`
|
COMPREPLY=( $( compgen -W '$( _parse_help "$1" ) {-1..-9}' \
|
||||||
COMPREPLY=( $( compgen -W "$helpopts -1 -2 -3 -4 -5 -6 -7 -8 -9" \
|
|
||||||
-- "$cur" ) )
|
-- "$cur" ) )
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
@ -39,7 +39,7 @@ _python()
|
|||||||
if [[ "$cur" != -* ]]; then
|
if [[ "$cur" != -* ]]; then
|
||||||
_filedir 'py?([co])'
|
_filedir 'py?([co])'
|
||||||
else
|
else
|
||||||
COMPREPLY=( $( compgen -W "$( _parse_help $1 -h )" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -h )' -- "$cur" ) )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
@ -126,7 +126,7 @@ _sysbench()
|
|||||||
--init-rng= --debug= --validate= --help --version"
|
--init-rng= --debug= --validate= --help --version"
|
||||||
|
|
||||||
if [[ $test ]]; then
|
if [[ $test ]]; then
|
||||||
local help=( $( _parse_help $1 "--test=$test help" ) )
|
local help=( $( _parse_help "$1" "--test=$test help" ) )
|
||||||
opts+=" ${help[@]/%/=} prepare run cleanup help version"
|
opts+=" ${help[@]/%/=} prepare run cleanup help version"
|
||||||
else
|
else
|
||||||
opts+=" --test="
|
opts+=" --test="
|
||||||
|
Loading…
x
Reference in New Issue
Block a user