Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
history problems
- X-seq: zsh-workers 15816
- From: Vin Shelton <acs@xxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: history problems
- Date: 16 Sep 2001 14:16:41 -0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: EtherSoft, Inc
- Sender: ethersoft@xxxxxxx
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author