zsh-workers
 help / color / mirror / code / Atom feed
* history problems
@ 2001-09-16 18:16 Vin Shelton
  2001-09-16 21:31 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Vin Shelton @ 2001-09-16 18:16 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-09-18  2:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-16 18:16 history problems Vin Shelton
2001-09-16 21:31 ` Bart Schaefer
2001-09-17 17:56   ` Wayne Davison
2001-09-18  2:24     ` Vin Shelton

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).