Trying to fix a hard-to-catch bug
This commit is contained in:
parent
ef06864189
commit
5943374179
@ -23,7 +23,7 @@
|
|||||||
#
|
#
|
||||||
# http://bash-completion.alioth.debian.org/
|
# http://bash-completion.alioth.debian.org/
|
||||||
#
|
#
|
||||||
# RELEASE: 20080617.2
|
# RELEASE: 20080617.3
|
||||||
|
|
||||||
if [[ $- == *v* ]]; then
|
if [[ $- == *v* ]]; then
|
||||||
BASH_COMPLETION_ORIGINAL_V_VALUE="-v"
|
BASH_COMPLETION_ORIGINAL_V_VALUE="-v"
|
||||||
@ -3244,7 +3244,7 @@ _command()
|
|||||||
if [[ ${#COMP_WORDS[@]} -ge 2 ]]; then
|
if [[ ${#COMP_WORDS[@]} -ge 2 ]]; then
|
||||||
$func $cmd "${COMP_WORDS[${#COMP_WORDS[@]}-1]}" "${COMP_WORDS[${#COMP_WORDS[@]}-2]}"
|
$func $cmd "${COMP_WORDS[${#COMP_WORDS[@]}-1]}" "${COMP_WORDS[${#COMP_WORDS[@]}-2]}"
|
||||||
else
|
else
|
||||||
$func $cmd "${COMP_WORDS[${#COMP_WORDS[@]}-1}}"
|
$func $cmd "${COMP_WORDS[${#COMP_WORDS[@]}-1]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# remove any \: generated by a command that doesn't
|
# remove any \: generated by a command that doesn't
|
||||||
@ -9364,16 +9364,17 @@ _svnlook()
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
complete -F _svnlook $default svnlook
|
complete -F _svnlook $default svnlook
|
||||||
|
}
|
||||||
|
|
||||||
|
have rrdtool &&
|
||||||
_rrdtool ()
|
_rrdtool ()
|
||||||
{
|
{
|
||||||
cur=`_get_cword`
|
cur=`_get_cword`
|
||||||
COMPREPLY=( $( compgen -W 'create update updatev graph dump \
|
COMPREPLY=( $( compgen -W 'create update updatev graph dump \
|
||||||
restore last lastupdate first info \
|
restore last lastupdate first info \
|
||||||
fetch tune resize xport' -- $cur ) )
|
fetch tune resize xport' -- $cur ) )
|
||||||
}
|
} &&
|
||||||
complete -F _rrdtool rrdtool
|
complete -F _rrdtool rrdtool
|
||||||
}
|
|
||||||
|
|
||||||
_filedir_xspec()
|
_filedir_xspec()
|
||||||
{
|
{
|
||||||
@ -9400,7 +9401,7 @@ _filedir_xspec()
|
|||||||
|
|
||||||
while read -r tmp; do
|
while read -r tmp; do
|
||||||
[[ -n $tmp ]] && toks[${#toks[@]}]=$tmp
|
[[ -n $tmp ]] && toks[${#toks[@]}]=$tmp
|
||||||
done < <( compgen -f -X $xspec -- "\$(quote_readline "\$cur")" )
|
done < <( eval compgen -f -X $xspec -- "\$(quote_readline "\$cur")" )
|
||||||
|
|
||||||
COMPREPLY=( "${toks[@]}" )
|
COMPREPLY=( "${toks[@]}" )
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user