🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1708

gawk exit "bug" -- a retraction

#1708
From: Jim Meyering
Date: Fri, 02 Feb 1990 20:53
19 lines
1062 bytes
Regarding my recent "bug" report concerning gawk's exit command,
David C Lawrence (tale@turing.cs.rpi.edu) wrote to me:

>Your awk programme is buggy.  You have told it to exit 2 as soon as
>gets any input lines.  /dev/null didn't feed it any input lines so it
>doesn't hit that statement.

He's right.  I die of embarrassment.

Unfortunately, I hadn't read the manual carefully enough.
The gawk program that prompted the pared-down "bug report"
had a {} rule with actions including "exit 2," and the pattern

    END { exit 0 }

Now I realize what was happening.
Sorry for the false alarm.

Jim Meyering      meyering@cs.utexas.edu
Technical Details
Message-ID: <9002022053.AA01181@ai.cs.utexas.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!CS.UTEXAS.EDU!meyering

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!CS.UTEXAS.EDU!meyering
From: meyering@CS.UTEXAS.EDU (Jim Meyering)
Newsgroups: gnu.utils.bug
Subject: gawk exit "bug" -- a retraction
Message-ID: <9002022053.AA01181@ai.cs.utexas.edu>
Date: 2 Feb 90 20:53:43 GMT
Sender: gupta-n@tut.cis.ohio-state.edu
Distribution: gnu
Organization: U of TX at Austin CS Dept
Lines: 19