Fixed errors with POSIX enabled (Closes: #502804)
This commit is contained in:
parent
606860000c
commit
b3f3017a46
@ -269,16 +269,23 @@ _filedir()
|
|||||||
|
|
||||||
_expand || return 0
|
_expand || return 0
|
||||||
|
|
||||||
local toks=( ) tmp
|
toks=( ${toks[@]} $(
|
||||||
|
compgen -d -- "$(quote_readline "$cur")" | {
|
||||||
while read -r tmp; do
|
while read -r tmp; do
|
||||||
[[ -n $tmp ]] && toks[${#toks[@]}]=$tmp
|
[[ -n $tmp ]] && echo $tmp
|
||||||
done < <( compgen -d -- "$(quote_readline "$cur")" )
|
done
|
||||||
|
}
|
||||||
|
))
|
||||||
|
|
||||||
if [[ "$1" != -d ]]; then
|
if [[ "$1" != -d ]]; then
|
||||||
xspec=${1:+"!*.$1"}
|
xspec=${1:+"!*.$1"}
|
||||||
|
toks=( ${toks[@]} $(
|
||||||
|
compgen -f -X "$xspec" -- "$(quote_readline "$cur")" | {
|
||||||
while read -r tmp; do
|
while read -r tmp; do
|
||||||
[[ -n $tmp ]] && toks[${#toks[@]}]=$tmp
|
[[ -n $tmp ]] && echo $tmp
|
||||||
done < <( compgen -f -X "$xspec" -- "$(quote_readline "$cur")" )
|
done
|
||||||
|
}
|
||||||
|
))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
COMPREPLY=( "${COMPREPLY[@]}" "${toks[@]}" )
|
COMPREPLY=( "${COMPREPLY[@]}" "${toks[@]}" )
|
||||||
@ -9570,15 +9577,21 @@ _filedir_xspec()
|
|||||||
xspec=${xspec#*-X }
|
xspec=${xspec#*-X }
|
||||||
xspec=${xspec%% *}
|
xspec=${xspec%% *}
|
||||||
|
|
||||||
local toks=( ) tmp
|
toks=( $(
|
||||||
|
compgen -d -- "$(quote_readline "$cur")" | {
|
||||||
while read -r tmp; do
|
while read -r tmp; do
|
||||||
[[ -n $tmp ]] && toks[${#toks[@]}]=$tmp
|
[[ -n $tmp ]] && echo $tmp
|
||||||
done < <( compgen -d -- "$(quote_readline "$cur")" )
|
done
|
||||||
|
}
|
||||||
|
))
|
||||||
|
|
||||||
|
toks=( ${toks[@]} $(
|
||||||
|
eval compgen -f -X $xspec -- "\$(quote_readline "\$cur")" | {
|
||||||
while read -r tmp; do
|
while read -r tmp; do
|
||||||
[[ -n $tmp ]] && toks[${#toks[@]}]=$tmp
|
[[ -n $tmp ]] && echo $tmp
|
||||||
done < <( eval compgen -f -X $xspec -- "\$(quote_readline "\$cur")" )
|
done
|
||||||
|
}
|
||||||
|
))
|
||||||
|
|
||||||
COMPREPLY=( "${toks[@]}" )
|
COMPREPLY=( "${toks[@]}" )
|
||||||
}
|
}
|
||||||
|
3
debian/changelog
vendored
3
debian/changelog
vendored
@ -29,9 +29,10 @@ bash-completion (200809xx) UNRELEASED; urgency=low
|
|||||||
* Added apache2ctl completion
|
* Added apache2ctl completion
|
||||||
* Added gpg2 completion (Closes: #489927)
|
* Added gpg2 completion (Closes: #489927)
|
||||||
* Fixed mplayer -skin completion (Closes: #501473)
|
* Fixed mplayer -skin completion (Closes: #501473)
|
||||||
|
* Fixed errors with POSIX enabled (Closes: #502804)
|
||||||
* debian/links fixed (Closes: #494292)
|
* debian/links fixed (Closes: #494292)
|
||||||
|
|
||||||
-- David Paleino <d.paleino@gmail.com> Fri, 24 Oct 2008 19:07:34 +0200
|
-- David Paleino <d.paleino@gmail.com> Fri, 24 Oct 2008 19:16:44 +0200
|
||||||
|
|
||||||
bash-completion (20080705) unstable; urgency=low
|
bash-completion (20080705) unstable; urgency=low
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user