summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2001-08-22 15:37:19 +0000
committerBart Schaefer <barts@users.sourceforge.net>2001-08-22 15:37:19 +0000
commit4fe788b09293eac27472a33d3b5e784583c13bde (patch)
tree21340177d61d025a4b429686e20139defeb8be68
parent80988d80275208d8843c9fefa8b49f8baf0b1ab4 (diff)
downloadzsh-4fe788b09293eac27472a33d3b5e784583c13bde.tar.gz
zsh-4fe788b09293eac27472a33d3b5e784583c13bde.tar.xz
zsh-4fe788b09293eac27472a33d3b5e784583c13bde.zip
Don't treat numbers as cd-able vars.
-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