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

Re: PATCH: SECONDS can be floating point

Wayne Davison wrote:
> Perhaps the
> bug is that the value is being saved/restored relative to "now"?  (I
> haven't looked at the local-variable code enough to know for sure.)

Yes, that is what happens, so an alternative fix is to save and restore
what's in shtime rather than use the value reported by the parameter.
This requires yet more ugly parameter-specific code.  In particular, you
need to store a complete struct timeval.

Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070

The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
If you received this in error, please contact the sender and 
delete the material from any computer.

Messages sorted by: Reverse Date, Date, Thread, Author