about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-27 12:07:35 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-27 12:07:35 +0000
commit5d89ce8e656eeb53ec8d6fac2e48acc3e25b12d9 (patch)
tree760127413b483e5e15d4d9ff8d4592d26ad4cfee
parentba2ea727531305043ae64be5ad591e30773a7908 (diff)
downloadzsh-5d89ce8e656eeb53ec8d6fac2e48acc3e25b12d9.tar.gz
zsh-5d89ce8e656eeb53ec8d6fac2e48acc3e25b12d9.tar.xz
zsh-5d89ce8e656eeb53ec8d6fac2e48acc3e25b12d9.zip
ensure $PWD is prepended to cache-names for long options in _arguments (10974)
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Base/_arguments2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a0d6a1d12..8b6fbdfeb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-04-27  Sven Wischnowsky  <wischnow@informatik.hu-berlin.de>
+
+	* 10974: Completion/Base/_arguments: ensure $PWD is prepended to
+ 	cache-names for long options in _arguments
+	
 2000-04-27  Peter Stephenson  <pws@cambridgesiliconradio.com>
 
 	* 10971: Src/pattern.c: noglobdots didn't work with the PAT_ANY
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments
index 77fbf534c..b1e790e1c 100644
--- a/Completion/Base/_arguments
+++ b/Completion/Base/_arguments
@@ -17,7 +17,7 @@ if (( long )); then
   fi
 
   name=${~words[1]}
-  [[ "$name" != /* ]] && tmp="$PWD/$name"
+  [[ "$name" = [^/]*/* ]] && name="$PWD/$name"
 
   name="_args_cache_${name}"
   name="${name//[^a-zA-Z0-9_]/_}"