🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1706

gawk's exit # statement doesn't work

#1706
From: Jim Meyering
Date: Thu, 01 Feb 1990 17:29
9 lines
634 bytes
Gawk exits with a zero `status' even with statements like "exit 1"

> ai% gawk -V '{exit 2}' < /dev/null
> Gnu Awk (gawk) 2.11, patchlevel 1
> ai% echo $status
> 0
> ai%

Jim Meyering      meyering@cs.utexas.edu
Technical Details
Message-ID: <9002011730.AA25762@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's exit # statement doesn't work
Message-ID: <9002011730.AA25762@ai.cs.utexas.edu>
Date: 1 Feb 90 17:29:59 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: U of TX at Austin CS Dept
Lines: 9