zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Danek Duvall <duvall@emufarm.org>
Cc: zsh-users@sunsite.dk
Subject: Re: history editing
Date: Wed, 21 Nov 2001 15:41:14 -0800	[thread overview]
Message-ID: <011121154114.ZM2755@candle.brasslantern.com> (raw)
In-Reply-To: <20011121143008.A2559@lorien.emufarm.org>

On Nov 21,  2:30pm, Danek Duvall wrote:
> 
> I think this was the key I was missing.  fc -R doesn't replace the
> current history with what it reads in, it adds it to the end.
> 
> I'm surprised, then, that this ever worked.

If $SAVEHIST is greater than $HISTSIZE and the file that you're editing was
non-empty before, then after editing there could still be more than $HISTSIZE
lines in the file.  In that event you'd read in the last $HISTSIZE of those
lines, pushing the entire current history out.

In other words, you only see the effect you were seeing when the number of
lines in the file is less than or equal to $HISTSIZE.


           reply	other threads:[~2001-11-21 23:41 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20011121143008.A2559@lorien.emufarm.org>]

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=011121154114.ZM2755@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=duvall@emufarm.org \
    --cc=zsh-users@sunsite.dk \
    /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).