On 6/3/17 1:15 PM, Pranav Deshpande wrote:
> Hello,
> Sorry for the late reply.
>
> My solution is to change *line 294* of builtins/read.def.
>
> Change
> if (code == 0 || *intval < 0* || intval != (int)intval)
>
> to
>
> if (code == 0 || i*ntval <= 0* || intval != (int)intval)
That's a fine solution for behavior 1. If you'd prefer behavior 2,
obviously you have to do something else. :-)
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/