Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!GARP.MIT.EDU!lotus!steveng From: lotus!steveng@GARP.MIT.EDU (Stephen Ng) Newsgroups: gnu.utils.bug Subject: Bug in gawk. Message-ID: <8904242224.AA09517@lotus.lotus.com> Date: 24 Apr 89 22:24:23 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 9 I'm using gawk 2.01beta 13 Dec 1988. The following command incorrectly produces no output: ls | gawk ' { while (getline > 0) print $0 } ' However, this line does work (it produces a listing of the directory): ls | gawk ' { while ((getline) > 0) print $0 } '