Fix sed error in qdbus completions containing slashes (Debian: 552631).
This commit is contained in:
parent
60ee2500bc
commit
1d74adc296
1
CHANGES
1
CHANGES
@ -26,6 +26,7 @@ bash-completion (2.x)
|
|||||||
Marco Poletti (Alioth: #312021).
|
Marco Poletti (Alioth: #312021).
|
||||||
* Improve sourcing snippets from completion dirs.
|
* Improve sourcing snippets from completion dirs.
|
||||||
* Drop support for bash < 3.
|
* Drop support for bash < 3.
|
||||||
|
* Fix sed error in qdbus completions containing slashes (Debian: 552631).
|
||||||
|
|
||||||
-- David Paleino <d.paleino@gmail.com> Sun, 11 Oct 2009 11:11:57 +0200
|
-- David Paleino <d.paleino@gmail.com> Sun, 11 Oct 2009 11:11:57 +0200
|
||||||
|
|
||||||
|
@ -7,13 +7,9 @@ _qdbus()
|
|||||||
|
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
cur=`_get_cword`
|
cur=`_get_cword`
|
||||||
if [ -z "$cur" ]; then
|
[ -n "$cur" ] && unset COMP_WORDS[${#COMP_WORDS[@]}-1]
|
||||||
compstr=${COMP_WORDS[*]}
|
COMPREPLY=( $( compgen -W '$( command ${COMP_WORDS[@]} | sed s/\(.*\)// )' \
|
||||||
else
|
-- "$cur" ) )
|
||||||
compstr=$( command echo ${COMP_WORDS[*]} | sed "s/ ${cur/\//\\/}$//" )
|
|
||||||
fi
|
|
||||||
COMPREPLY=( $( compgen -W '$( command $compstr | sed s/\(.*\)// )' \
|
|
||||||
-- "$cur" ) )
|
|
||||||
} &&
|
} &&
|
||||||
complete -F _qdbus qdbus
|
complete -F _qdbus qdbus
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user