Fixed completion of environment variables, thanks to Morita Sho
(Closes: #272660)
This commit is contained in:
parent
4f73ec53a8
commit
e783e088a1
@ -3085,6 +3085,9 @@ _cd()
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Enable -o filenames option, see Debian bug #272660
|
||||
compgen -f /non-existing-dir/ >/dev/null
|
||||
|
||||
# Use standard dir completion if no CDPATH or parameter starts with /,
|
||||
# ./ or ../
|
||||
if [ -z "${CDPATH:-}" ] || [[ "$cur" == ?(.)?(.)/* ]]; then
|
||||
@ -3119,9 +3122,9 @@ _cd()
|
||||
return 0
|
||||
}
|
||||
if shopt -q cdable_vars; then
|
||||
complete -v -F _cd $nospace $filenames cd
|
||||
complete -v -F _cd $nospace cd
|
||||
else
|
||||
complete -F _cd $nospace $filenames cd
|
||||
complete -F _cd $nospace cd
|
||||
fi
|
||||
|
||||
_remove_comp_word()
|
||||
|
4
debian/changelog
vendored
4
debian/changelog
vendored
@ -48,6 +48,8 @@ bash-completion (200811xx) UNRELEASED; urgency=low
|
||||
* Added monodevelop and mdtool completions.
|
||||
* Split subversion-related completions to contrib/_subversion
|
||||
(prefixed with _ to avoid file conflicts with upstream's one)
|
||||
* Fixed completion of environment variables, thanks to Morita Sho
|
||||
(Closes: #272660)
|
||||
* Merge from Gentoo:
|
||||
- fix 'find' completion so that it properly completes on -?(i)whilename.
|
||||
Patch by Ciaran McCreesh.
|
||||
@ -67,7 +69,7 @@ bash-completion (200811xx) UNRELEASED; urgency=low
|
||||
* debian/install:
|
||||
- correctly install contrib/* under /etc/bash_completion.d/
|
||||
|
||||
-- David Paleino <d.paleino@gmail.com> Thu, 08 Jan 2009 16:32:15 +0100
|
||||
-- David Paleino <d.paleino@gmail.com> Fri, 09 Jan 2009 12:17:16 +0100
|
||||
|
||||
bash-completion (20080705) unstable; urgency=low
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user