bug-gawk
[Top][All Lists]
Advanced

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

[bug-gawk] getline change of behavior in 4.0.0


From: Andrew Noymer
Subject: [bug-gawk] getline change of behavior in 4.0.0
Date: Fri, 16 Mar 2012 17:20:01 -0700

Dear AWK maintainers,

       I have noticed a change in the behavior of "getline" in gawk 4.0.0 relative to gawk 3.1.8 and before.

       I don't know if this is a bug or an intended change of behavior.

       I used to use "getline", a lot, to strip-off a header line (typically, one line) from whatever I was doing with AWK. 

       AWK now seems to do this sort-of automagically, which means, however, that the explicit getline will strip not the header but a line of real data (with bad consequences...). 

        I now comment-out the "getline", and it works... sometimes requiring a pipe through "sed 1d" first (which is fine).

         My question is: Is this intentional?  I looked but not found any discussion in the docs.

         I can provide sample files but I'm guessing you know what I mean.

         Many thanks.

             Andrew Noymer
             UC Irvine
--
https://webfiles.uci.edu/noymer/web/

reply via email to

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