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

[ramk@xxxxxxxxxxxxxxxxx: Bug#336547: zsh: zcalc does not use $ZDOTDIR when defined, as the base dir for history file]



Committing this.

----- Forwarded message from "R.Ramkumar" <ramk@xxxxxxxxxxxxxxxxx> -----

Date: Sun, 30 Oct 2005 20:33:04 +0530
From: "R.Ramkumar" <ramk@xxxxxxxxxxxxxxxxx>
To: Debian Bug Tracking System <maintonly@xxxxxxxxxxxxxxx>
Subject: Bug#336547: zsh: zcalc does not use $ZDOTDIR when defined, as the base dir for history file

Misc/zcalc uses a file .zcalc_history for storing a persistent
expression history. It would be more consistent if it uses $ZDOTDIR
when defined, instead of ~, as the directory for this history file.




Content-Description: Patch to use ZDOTDIR
--- zcalc	2005-09-29 21:24:02.000000000 +0530
+++ zcalc.new	2005-10-30 20:02:25.000000000 +0530
@@ -91,7 +91,7 @@
 integer num outdigits outform=1
 
 # We use our own history file with an automatic pop on exit.
-history -ap ~/.zcalc_history
+history -ap "${ZDOTDIR:-$HOME}/.zcalc_history"
 
 forms=( '%2$g' '%.*g' '%.*f' '%.*E' )
 


Regards,
Ramkumar

----- End forwarded message -----



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