Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!rochester!udel!burdvax!pearl!lang From: lang@pearl.PRC.Unisys.COM (Francois-Michel Lang) Newsgroups: comp.unix.questions Subject: Re: Strange behaviour of awk Keywords: awk Message-ID: <9398@burdvax.PRC.Unisys.COM> Date: 28 Feb 89 14:46:51 GMT References: <497@eutrc3.UUCP> Sender: news@PRC.Unisys.COM Organization: Unisys Corporation, Paoli Research Center; Paoli, PA Lines: 17 In article <497@eutrc3.UUCP> wsinkees@eutrc3.UUCP (Kees Huizing) writes: > >In the use of the UNIX filter "awk" I encountered the following problem. ... >1. How can the value of $0 depend on whether it has been printed or not? > Is this a bug, or do I overlook some mechanism of awk? This is a known bug that is pointed out in the document by John W. Pierce "A Supplemental Document for AWK, or, Things that Al, Pete, and Brian didn't mention much". That paper also describes a number of nifty features that are not documented in the standard UNIX dscription for AWK. ---------------------------------------------------------------------------- Francois-Michel Lang Paoli Research Center, Unisys Corporation lang@prc.unisys.com (215) 648-7256 Dept of Comp & Info Science, U of PA lang@cis.upenn.edu (215) 898-9511