The following commit has been merged in the master branch:
commit 88b897e2241a728ca9d37fdcfa005930f8c59870
Author: Ville Skyttä <[email protected]>
Date: Sun Nov 6 23:48:59 2011 +0200
_cd: Don't try to complete variables (and fail), _init_completion already
does.
diff --git a/bash_completion b/bash_completion
index 9c96db7..44f74c0 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1489,11 +1489,6 @@ _cd()
_init_completion || return
local IFS=$'\n' i j k
- # try to allow variable completion
- if [[ "$cur" == ?(\\)\$* ]]; then
- COMPREPLY=( $( compgen -v -P '$' -- "${cur#?(\\)$}" ) )
- return 0
- fi
compopt -o filenames
--
bash-completion
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-commits