From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gatech.edu (gatech.edu [128.61.1.1]) by werple.mira.net.au (8.6.10/8.6.9) with SMTP id VAA14044 for ; Wed, 24 May 1995 21:20:46 +1000 Received: from math (math.skiles.gatech.edu) by gatech.edu with SMTP id AA15324 (5.65c/Gatech-10.0-IDA for ); Wed, 24 May 1995 07:19:07 -0400 Received: by math (5.x/SMI-SVR4) id AA09730; Wed, 24 May 1995 07:17:22 -0400 Resent-Date: Wed, 24 May 95 07:17:25 -0400 Old-Return-Path: Date: Wed, 24 May 95 07:17:25 -0400 From: guthrie@math.upenn.edu Posted-Date: Wed, 24 May 95 07:17:25 -0400 Message-Id: <9505241117.AA08540@archimedes.math.upenn.edu> To: zsh-list@sterling.com Subject: Re: [beta8] history saved on exec doesn't. Resent-Message-Id: <"DQ4w93.0.yN2.1Nnml"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/27 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Mark Borges 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