zsh-workers
 help / color / mirror / code / Atom feed
* Re: [beta8] history saved on exec doesn't.
@ 1995-05-24 11:17 guthrie
  1995-05-24 13:51 ` P.Stephenson
  0 siblings, 1 reply; 4+ messages in thread
From: guthrie @ 1995-05-24 11:17 UTC (permalink / raw)
  To: zsh-list

Mark Borges <mdb@cdc.noaa.gov> wrote:

> >> Mark Borges(mb) wrote on Wed, 17 May 95 09:55:53 MDT:
>
> >> Zoltan Hidvegi(ZH) wrote on Wed, 17 May 1995 12:08:32 +0100 (MET DST):
> ZH> I think that your history is wiped out because setting
> ZH> HISTFILE does not load the history. It's only loaded after
> ZH> the startup scripts. But you exec something from the startup
> ZH> scrips, and since the HISTFILE parameter is already set, zsh
> ZH> saves the (still empty) history. To prevent this either do
> ZH> not set HISTFILE before exec or set the APPEND_HISTORY option
> ZH> (which is useful anyway I think).
>
> mb> I agree, this makes sense. But unfortunately it doesn't
> mb> work. But it probably isn't worth fixing, either.

One other thing that is now borke is if I do any command substitution in
the startup scripts (to set a variable say) after I have set the SAVEHIST
and HISTFILE variables, and I don't have APPEND_HISTORY set, then this wipes
out the history file as well.  (But I guess that this should make sense if
exec is wiping out the history file under these same conditions.)

John Guthrie
guthrie@math.upenn.edu


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1995-05-25 15:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-05-24 11:17 [beta8] history saved on exec doesn't guthrie
1995-05-24 13:51 ` P.Stephenson
1995-05-24 15:42   ` Barton E. Schaefer
1995-05-24 16:55     ` P.Stephenson

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).