Package: gawk
Version: 1:3.1.5.dfsg-4
Severity: important

hi,

I think gawk does the wrong thing here, and badly since you'd expect to 
catch and handle the situation in the .awk but instead you're kicked out.

According to manpage:

       The  getline command returns 0 on end of file and -1 on an
       error.  Upon an error, ERRNO contains a string  describing
       the problem.

which means that program shouldn't fail, only that return code and ERRNO 
should be set properly.

BTW, the manpage is incomplete wrt getline, it should also mention that 
getline return 1 on normal read - eg:

       The  getline command returns 1 on normal (successful) read, 0 on 
       end of file and -1 on an error.  Upon an error, ERRNO contains a 
       string  describing the problem.

thanks
--
paolo



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to