🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs
Article #533

awk bug (or is it a feature)

#533
From: pjbk
Date: Thu, 17 Apr 1986 13:47
16 lines
1099 bytes
Our version of awk does not allow one to use a field specified
by a numerical expression as the left hand side of an expression.

The file below will pass the standard input through unmodified,
although it is designed to replace the last field in each record
with "LAST FIELD".  Is this a bug or a feature?
 -----------------------
 { $NF = "LAST FIELD"
 print}
 -----------------------
-- 
	Peter King, Heriot-Watt University
				JANET:	pjbk@uk.ac.hw.cs
				ARPA:	pjbk@cs.hw.ac.uk
				 or -	pjbk%cs.hw.ac.uk@ucl-cs
				UUCP:	..!ukc!cs.hw.ac.uk!pjbk
Technical Details
Message-ID: <800@brahma.cs.hw.AC.UK>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!houxm!whuxl!whuxlm!akgua!gatech!seismo!mcvax!ukc!cstvax!hwcs!pjbk

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!houxm!whuxl!whuxlm!akgua!gatech!seismo!mcvax!ukc!cstvax!hwcs!pjbk
From: pjbk@hwcs.UUCP
Newsgroups: net.bugs
Subject: awk bug (or is it a feature)
Message-ID: <800@brahma.cs.hw.AC.UK>
Date: Thu, 17-Apr-86 08:47:43 EST
Article-I.D.: brahma.800
Posted: Thu Apr 17 08:47:43 1986
Date-Received: Wed, 23-Apr-86 20:10:54 EST
Reply-To: pjbk@cs.hw.ac.uk (Peter King)
Organization: Computer Science, Heriot-Watt U., Scotland
Lines: 16