diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2011-11-06 23:48:59 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-11-06 23:48:59 +0200 |
commit | 88b897e2241a728ca9d37fdcfa005930f8c59870 (patch) | |
tree | 71b493ff4cc12aa2d672eed45933eb192b51a927 | |
parent | bea33f7ac9b59152ce40ff76ba159150e13f949d (diff) | |
download | bash-completion-88b897e2241a728ca9d37fdcfa005930f8c59870.tar.gz |
_cd: Don't try to complete variables (and fail), _init_completion already does.
-rw-r--r-- | bash_completion | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/bash_completion b/bash_completion index 9c96db78..44f74c07 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 |