summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Functions/Misc/zcalc4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a410e6ec8..d7a7ff24b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-05-13  Peter Stephenson  <pws@csr.com>
+
+	* 19936: Functions/Misc/zcalc: bad name for temporary history
+	file invites clashes.
+
 2004-05-12  Peter Stephenson  <pws@csr.com>
 
 	* 19920 modified c.f. 19921: Src/mem.c: attempt to improve
diff --git a/Functions/Misc/zcalc b/Functions/Misc/zcalc
index e8a28f9d1..37e06557c 100644
--- a/Functions/Misc/zcalc
+++ b/Functions/Misc/zcalc
@@ -87,8 +87,8 @@ emulate -L zsh
 setopt extendedglob
 
 # can't be local since required in EXIT trap
-zcalc_orighist=$HISTFILE 
-local temphist=${TMPPREFIX}hist SAVEHIST=$HISTSIZE
+zcalc_orighist=$HISTFILE
+local temphist=${TMPPREFIX}zcalc_hist.$$ SAVEHIST=$HISTSIZE
 HISTFILE=$temphist
 fc -W