Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zcalc bug



Matthias Kopfermann wrote:
> another problem is the temporary file-name . if more than
> one user uses zcalc the second user is not able to use zcalc
> because:
> zcalc:93: can't write history file /tmp/zshhist

That's easy, it was just using a stupid name.

Index: Functions/Misc/zcalc
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/Misc/zcalc,v
retrieving revision 1.9
diff -u -r1.9 zcalc
--- Functions/Misc/zcalc	18 Apr 2003 13:20:50 -0000	1.9
+++ Functions/Misc/zcalc	13 May 2004 15:56:46 -0000
@@ -88,7 +88,7 @@
 
 # can't be local since required in EXIT trap
 zcalc_orighist=$HISTFILE 
-local temphist=${TMPPREFIX}hist SAVEHIST=$HISTSIZE
+local temphist=${TMPPREFIX}zcalc_hist.$$ SAVEHIST=$HISTSIZE
 HISTFILE=$temphist
 fc -W
 

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author