[Bash-completion-commits] ./current r1224: Fixed completion of environment variables, thanks to Morita Sho
David Paleino
d.paleino at gmail.com
Fri Jan 9 11:19:15 UTC 2009
------------------------------------------------------------
revno: 1224
committer: David Paleino <d.paleino at gmail.com>
branch nick: current
timestamp: Fri 2009-01-09 12:19:15 +0100
message:
Fixed completion of environment variables, thanks to Morita Sho
(Closes: #272660)
modified:
bash_completion
debian/changelog
-------------- next part --------------
=== modified file 'bash_completion'
--- a/bash_completion 2009-01-08 16:52:54 +0000
+++ b/bash_completion 2009-01-09 11:19:15 +0000
@@ -3085,6 +3085,9 @@
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 @@
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()
=== modified file 'debian/changelog'
--- a/debian/changelog 2009-01-08 16:52:54 +0000
+++ b/debian/changelog 2009-01-09 11:19:15 +0000
@@ -48,6 +48,8 @@
* 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 @@
* debian/install:
- correctly install contrib/* under /etc/bash_completion.d/
- -- David Paleino <d.paleino at gmail.com> Thu, 08 Jan 2009 16:32:15 +0100
+ -- David Paleino <d.paleino at gmail.com> Fri, 09 Jan 2009 12:17:16 +0100
bash-completion (20080705) unstable; urgency=low
More information about the Bash-completion-commits
mailing list