🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs
Article #534

Re: awk bug (or is it a feature)

#534
From: P. D. Guthrie
Date: Tue, 22 Apr 1986 20:18
17 lines
1220 bytes
In article <800@brahma.cs.hw.AC.UK> pjbk@cs.hw.ac.uk (Peter King) writes:
>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}

This works fine for me,  so you must have a bug in your release.
-- 

Paul Guthrie				`When the going gets weird,
ihnp4!ihdev!pdg				 The weird turn pro'
					  - H. Thompson
Technical Details
Message-ID: <615@ihdev.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!ihdev!pdg
References: <800@brahma.cs.hw.AC.UK>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84 exptools; site ihdev.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!ihdev!pdg
From: pdg@ihdev.UUCP (P. D. Guthrie)
Newsgroups: net.bugs
Subject: Re: awk bug (or is it a feature)
Message-ID: <615@ihdev.UUCP>
Date: Tue, 22-Apr-86 15:18:45 EST
Article-I.D.: ihdev.615
Posted: Tue Apr 22 15:18:45 1986
Date-Received: Wed, 23-Apr-86 23:45:44 EST
References: <800@brahma.cs.hw.AC.UK>
Reply-To: pdg@ihdev.UUCP (55224-P. D. Guthrie)
Organization: AT&T Bell Laboratories
Lines: 17