zsh-workers
 help / color / mirror / code / Atom feed
From: Vin Shelton <acs@alumni.princeton.edu>
To: zsh-workers@sunsite.dk
Subject: history problems
Date: 16 Sep 2001 14:16:41 -0400	[thread overview]
Message-ID: <m2adzvrofq.fsf@zion.rcn.com> (raw)

I've been off on vacation for a week and haven't yet had a chance to
catch up on my zsh email, so let me apologize in advance if this has
already been discussed.

With a current zsh built from CVS, I notice the following problem:

zsh -f
zion% ls

... output omitted ...

zion% history
    1  ls
zion% history -100
fc: bad history number: 0

It used to be that 'history -100' would return the same results as
'history' in this case.

I ran into this problem because .zlogout records my shell histories to
separate files upon logout.  The following command only works if at
least $HISTSIZE commands have been run:

fc -nldf -$HISTSIZE >> $outfile

This used to save up to $HISTSIZE commands, but now it generates:

fc: bad history number: 0

if fewer than $HISTSIZE commands have been executed in the shell

Thanks in advance,
  - vin


             reply	other threads:[~2001-09-16 18:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-16 18:16 Vin Shelton [this message]
2001-09-16 21:31 ` Bart Schaefer
2001-09-17 17:56   ` Wayne Davison
2001-09-18  2:24     ` Vin Shelton

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=m2adzvrofq.fsf@zion.rcn.com \
    --to=acs@alumni.princeton.edu \
    --cc=zsh-workers@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).