summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2000-05-02 11:56:27 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2000-05-02 11:56:27 +0000
commitf3be526791ff209c9858883c2cf4e2ed71ed6e14 (patch)
tree66e3c0dffbb1a098e9406d3d68d2089807f9a0d8
parentbe2a2590e4551df42c180b4f2e5aa4b4ffb860c1 (diff)
downloadzsh-f3be526791ff209c9858883c2cf4e2ed71ed6e14.tar.gz
zsh-f3be526791ff209c9858883c2cf4e2ed71ed6e14.tar.xz
zsh-f3be526791ff209c9858883c2cf4e2ed71ed6e14.zip
Small fix to avoid using slashes in temporary file name (11065)
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Commands/_complete_debug2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5b904cc53..a15ea1089 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-02  Oliver Kiddle  <opk@zsh.org>
+
+	* 11065: Completion/Commands/_complete_debug: small fix to avoid
+	using slashes in temporary file name
+
 2000-05-02  Sven Wischnowsky  <wischnow@informatik.hu-berlin.de>
 
 	* 11061: Functions/Misc/zrecompile: make zrecompile detect deleted
diff --git a/Completion/Commands/_complete_debug b/Completion/Commands/_complete_debug
index 5d3e8d9e3..be3f7672f 100644
--- a/Completion/Commands/_complete_debug
+++ b/Completion/Commands/_complete_debug
@@ -4,7 +4,7 @@ setopt localoptions nullglob rcexpandparam extendedglob
 unsetopt markdirs globsubst shwordsplit nounset ksharrays
 
 (( $+_debug_count )) || integer -g _debug_count
-local tmp=${TMPPREFIX}${$}${words[1]}$[++_debug_count]
+local tmp=${TMPPREFIX}${$}${words[1]:t}$[++_debug_count]
 local w="${(qqq)words}"
 
 [[ -t 2 ]] && exec 3>&2 2>| $tmp