bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] BEGINFILE/ENDFILE bug?


From: Aharon Robbins
Subject: Re: [bug-gawk] BEGINFILE/ENDFILE bug?
Date: Mon, 19 May 2014 22:53:07 +0300
User-agent: Heirloom mailx 12.5 6/20/10

> I am not sure why a non-redirected getline inside an END rule does not
> terminate the program.

It's probably returning -1 for end of file.

I'll be trying to look at this whole issue soon. It's clear that the
code was written to disallow getline into $0 even if from a file.
What's not clear is why it was done that way.  I have no earthly idea
at this point and will probably do something like Andy's patch, but I
want to wait until I'm more awake to try to handle it.

Thanks,

Arnold



reply via email to

[Prev in Thread] Current Thread [Next in Thread]