Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: .zsh_history bugreport
- X-seq: zsh-workers 16196
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: .zsh_history bugreport
- Date: Wed, 31 Oct 2001 16:38:56 +0000
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <Pine.LNX.4.21.0110301018500.31194-100000@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <Pine.LNX.4.21.0110301018500.31194-100000@xxxxxxxxxxxxxx>
On Oct 30, 10:25am, Wayne Davison wrote:
}
} One other potential change: Should readhistline() return "start"
} instead of "0" when fgets() fails? [...] if we've got some characters
} in the string, I figure we might as well return them. Do you agree?
I considered that when first rewriting readhistline(), but ...
I think it's more likely that if the history file is corrupted, then we
should treat the line as entirely unusable, rather than possibly push
garbage into the history list. It's not overtly harmful, of course,
since history entries don't get executed directly, but once there's junk
in the history it may be confusing for many users to figure out how to
get it *out* of the history again (particularly without losing what comes
before and after it).
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author