about summary refs log tree commit diff
diff options
context:
space:
mode:
-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_]/_}"