Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#183730: zsh: setting SAVEHIST breaks history saving without warning
- X-seq: zsh-workers 20250
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx, 183730-submitter@xxxxxxxxxxxxxxx
- Subject: Re: Bug#183730: zsh: setting SAVEHIST breaks history saving without warning
- Date: Mon, 09 Aug 2004 16:14:26 +0100
- In-reply-to: "Clint Adams"'s message of "Mon, 09 Aug 2004 11:07:37 EDT." <20040809150737.GA10711@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Clint Adams wrote:
> > (Why does this `break history saving'? Or is the subject line
> > inaccurate? I'll assume the latter for now.)
>
> I think he set SAVEHIST to some enormously large value which wrapped to
> 0, and thus the saving of his history was "broken", without a clear
> indication why.
What could happen is the value when converted to int appeared negative
--- that would cause it to be set to zero. More care with casts and
conversions ought to fix that.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author