🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Stephen Ng Mon, 24 Apr 1989 22:24
Bug in gawk.
#1572
Author: Stephen Ng
Date: Mon, 24 Apr 1989 22:24
9 lines
650 bytes
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 } '
Re: Bug in gawk.
#1574
Author: Arnold D. Robbins {EUCC}
Date: Tue, 25 Apr 1989 04:43
11 lines
1054 bytes
In article <8904242224.AA09517@lotus.lotus.com> lotus!steveng@GARP.MIT.EDU (Stephen Ng) writes:
>I'm using gawk 2.01beta 13 Dec 1988.

This is your bug.  You should switch to gawk 2.10beta; the problem described
in the referenced note is fixed in 2.10.  (2.10 has its bugs too, but
they're being worked on.)
-- 
Arnold Robbins -- Emory University Computing Center | Unix is a Registered
DOMAIN: arnold@unix.cc.emory.edu		    | Bell of AT&T Trademark
UUCP: gatech!emoryu1!arnold  PHONE: +1 404 727-7636 | Laboratories.
BITNET: arnold@emoryu1	     FAX:   +1 404 727-2599 |         -- Donn Seeley
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads