Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#183730: zsh: setting SAVEHIST breaks history saving without warning



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