zsh-workers
 help / color / mirror / code / Atom feed
From: guthrie@math.upenn.edu
To: zsh-list@sterling.com
Subject: Re: [beta8] history saved on exec doesn't.
Date: Wed, 24 May 95 07:17:25 -0400	[thread overview]
Message-ID: <9505241117.AA08540@archimedes.math.upenn.edu> (raw)

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


             reply	other threads:[~1995-05-24 11:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-05-24 11:17 guthrie [this message]
1995-05-24 13:51 ` P.Stephenson
1995-05-24 15:42   ` Barton E. Schaefer
1995-05-24 16:55     ` P.Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9505241117.AA08540@archimedes.math.upenn.edu \
    --to=guthrie@math.upenn.edu \
    --cc=zsh-list@sterling.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).