summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Zsh/Command/_cd2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 37c7e268d..50ad3a16d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-22 Bart Schaefer <schaefer@zsh.org>
+
+ * 15608: Completion/Zsh/Command/_cd: Don't treat numbers as
+ cd-able vars.
+
2001-08-21 Clint Adams <clint@zsh.org>
* 15675: Src/Builtins/rlimits.awk: handle case
diff --git a/Completion/Zsh/Command/_cd b/Completion/Zsh/Command/_cd
index fe347ae4c..3a536cb7b 100644
--- a/Completion/Zsh/Command/_cd
+++ b/Completion/Zsh/Command/_cd
@@ -36,7 +36,7 @@ else
tmpcdpath=(${${(@)cdpath:#.}:#$PWD})
# With cdablevars, we can complete foo as if ~foo/
- if [[ -o cdablevars && -n "$PREFIX" ]]; then
+ if [[ -o cdablevars && -n "$PREFIX" && "$PREFIX" != <-> ]]; then
if [[ "$PREFIX" != */* ]]; then
_tilde && ret=0
else