From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25139 invoked from network); 14 Feb 1997 01:17:57 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 14 Feb 1997 01:17:57 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id UAA05627; Thu, 13 Feb 1997 20:12:23 -0500 (EST) Resent-Date: Thu, 13 Feb 1997 20:03:07 -0500 (EST) From: "Bart Schaefer" Message-Id: <970213171026.ZM23336@candle.brasslantern.com> Date: Thu, 13 Feb 1997 17:10:26 -0800 In-Reply-To: Wayne Davison "Re: How to make APPENDHISTORY useful?" (Feb 13, 3:53pm) References: <199702132353.PAA24151@bebop.clari.net> Reply-To: schaefer@nbn.com X-Mailer: Z-Mail (4.0b.820 20aug96) To: Wayne Davison , schaefer@nbn.com, zsh-users@math.gatech.edu Subject: Re: How to make APPENDHISTORY useful? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"4QSVM3.0.II1.Bdx0p"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/679 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Feb 13, 3:53pm, Wayne Davison wrote: > Subject: Re: How to make APPENDHISTORY useful? > "Bart Schaefer" writes: > > but once the file gets full you're back to one of > > the states described above. > > Not quite. Since savehistfile() only appends newly entered lines Ah, that's what I'm missing. Still, I typically leave my shells running for days or even weeks at a time; the odds of my not entering SAVEHIST new lines in any given shell are vanishingly small. > One simple solution is to have zsh call savehistfile() every N lines when > APPEND_HISTORY is set. Another, even simpler, solution would be to separate variables for "how big is the history file" and "how many lines do I append to it" -- rather than have SAVEHIST mean both things.