------------------------------------------------------------
revno: 1224
committer: David Paleino <[email protected]>
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
=== 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 <[email protected]>  Thu, 08 Jan 2009 16:32:15 +0100
+ -- David Paleino <[email protected]>  Fri, 09 Jan 2009 12:17:16 +0100
 
 bash-completion (20080705) unstable; urgency=low
 

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits

Reply via email to