* [ramk@cse.iitm.ernet.in: Bug#336547: zsh: zcalc does not use $ZDOTDIR when defined, as the base dir for history file]
@ 2005-10-31 15:58 Clint Adams
2005-10-31 17:47 ` Wayne Davison
0 siblings, 1 reply; 2+ messages in thread
From: Clint Adams @ 2005-10-31 15:58 UTC (permalink / raw)
To: zsh-workers
Committing this.
----- Forwarded message from "R.Ramkumar" <ramk@cse.iitm.ernet.in> -----
Date: Sun, 30 Oct 2005 20:33:04 +0530
From: "R.Ramkumar" <ramk@cse.iitm.ernet.in>
To: Debian Bug Tracking System <maintonly@bugs.debian.org>
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 -----
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ramk@cse.iitm.ernet.in: Bug#336547: zsh: zcalc does not use $ZDOTDIR when defined, as the base dir for history file]
2005-10-31 15:58 [ramk@cse.iitm.ernet.in: Bug#336547: zsh: zcalc does not use $ZDOTDIR when defined, as the base dir for history file] Clint Adams
@ 2005-10-31 17:47 ` Wayne Davison
0 siblings, 0 replies; 2+ messages in thread
From: Wayne Davison @ 2005-10-31 17:47 UTC (permalink / raw)
To: zsh-workers
On Mon, Oct 31, 2005 at 10:58:08AM -0500, Clint Adams wrote:
> Committing this.
I made the same change to the 4.2 patches branch.
..wayne..
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-31 19:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-31 15:58 [ramk@cse.iitm.ernet.in: Bug#336547: zsh: zcalc does not use $ZDOTDIR when defined, as the base dir for history file] Clint Adams
2005-10-31 17:47 ` Wayne Davison
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).