fix semi-serious problem with _filedir()

This commit is contained in:
David Paleino 2008-06-22 01:08:15 +02:00
parent ac2cf69e1e
commit 71a054eaff
2 changed files with 4 additions and 3 deletions

View File

@ -241,13 +241,13 @@ _filedir()
#set -f # disable pathname expansion (globbing) #set -f # disable pathname expansion (globbing)
if [ "${1:-}" = -d ]; then if [ "${1:-}" = -d ]; then
COMPREPLY=( "${COMPREPLY[@]:-}" $( compgen -d -- $cur ) ) COMPREPLY=( ${COMPREPLY[@]:-} $( compgen -d -- $cur ) )
#eval "$glob" # restore glob setting. #eval "$glob" # restore glob setting.
return 0 return 0
fi fi
xspec=${1:+"!*.$1"} # set only if glob passed in as $1 xspec=${1:+"!*.$1"} # set only if glob passed in as $1
COMPREPLY=( "${COMPREPLY[@]:-}" $( compgen -f -X "$xspec" -- "$cur" ) \ COMPREPLY=( ${COMPREPLY[@]:-} $( compgen -f -X "$xspec" -- "$cur" ) \
$( compgen -d -- "$cur" ) ) $( compgen -d -- "$cur" ) )
#eval "$glob" # restore glob setting. #eval "$glob" # restore glob setting.
} }

3
debian/changelog vendored
View File

@ -2,6 +2,7 @@ bash-completion (20080617.2) UNRELEASED; urgency=low
* New upstream release * New upstream release
- provide a manpage for extra/dh_bash-completion - provide a manpage for extra/dh_bash-completion
- fix semi-serious problem with _filedir()
* debian/rules: * debian/rules:
- added rule to generate dh_bash-completion's manpage - added rule to generate dh_bash-completion's manpage
* debian/install, debian/dirs: * debian/install, debian/dirs:
@ -9,7 +10,7 @@ bash-completion (20080617.2) UNRELEASED; urgency=low
* debian/control: * debian/control:
- new package dh-bash-completion - new package dh-bash-completion
-- David Paleino <d.paleino@gmail.com> Sun, 22 Jun 2008 00:48:26 +0200 -- David Paleino <d.paleino@gmail.com> Sun, 22 Jun 2008 01:07:48 +0200
bash-completion (20080617.1) unstable; urgency=medium bash-completion (20080617.1) unstable; urgency=medium