mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
19936: zcalc temp history file name
This commit is contained in:
parent
8723d530b3
commit
aff4313b12
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue