🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs
Article #536

Re: awk bug (or is it a feature)

#536
From: gwyn
Date: Mon, 21 Apr 1986 01:40
10 lines
1014 bytes
In article <800@brahma.cs.hw.AC.UK> pjbk@cs.hw.ac.uk (Peter King) writes:
>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}

Must be a bug; it works here (SVR2 + bug fixes).
Make sure the shell does not mess with the special characters
(enclose the whole expression in 'quotes').
Technical Details
Message-ID: <154@brl-smoke.ARPA>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!houxm!whuxl!whuxlm!akgua!gatech!seismo!brl-adm!brl-smoke!gwyn
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
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!houxm!whuxl!whuxlm!akgua!gatech!seismo!brl-adm!brl-smoke!gwyn
From: gwyn@brl-smoke.UUCP
Newsgroups: net.bugs
Subject: Re: awk bug (or is it a feature)
Message-ID: <154@brl-smoke.ARPA>
Date: Sun, 20-Apr-86 20:40:01 EST
Article-I.D.: brl-smok.154
Posted: Sun Apr 20 20:40:01 1986
Date-Received: Thu, 24-Apr-86 06:16:00 EST
References: <800@brahma.cs.hw.AC.UK>
Reply-To: gwyn@brl.ARPA
Organization: Ballistic Research Lab (BRL)
Lines: 10