Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!cmcl2!lanl!dph From: dph@lanl.ARPA (David P Huelsbeck) Newsgroups: net.unix-wizards Subject: Re: awk oddity: 2.8BSD vs. ULTRIX Message-ID: <7761@lanl.ARPA> Date: Mon, 22-Sep-86 06:03:05 EDT Article-I.D.: lanl.7761 Posted: Mon Sep 22 06:03:05 1986 Date-Received: Mon, 22-Sep-86 07:54:50 EDT References: <268@uwmacc.UUCP> Reply-To: dph@a.UUCP (David P Huelsbeck) Distribution: net Organization: Los Alamos National Laboratory Lines: 31 Summary: 4.2 is broken In article <268@uwmacc.UUCP> jwp@uwmacc.UUCP (Jeffrey W Percival) writes: >Here's a curiosity I hope someone can help me on. >I have a file called "cmd" with this line: > > { $1 = $2 + $3 } { print $0 } > >and a file called "data" with this line: > > 1 1 1 1 > >When I type this command: > > awk -f cmd data > >I get these responses: > > 2 1 1 1 on 2.8BSD on an 11/70 > >and > > 1 1 1 1 on ULTRIX 32m v. 1.1 on a MicroVax II > and on 4.2BSD on a Vax 780. > >Why does awk vary in its response? >-- > Jeff Percival ...!uwvax!uwmacc!sal70!jwp or ...!uwmacc!jwp Because awk under 4.2 is broken and ULTRIX works too much the same. This is fixed in 4.3 and SysV. dph@lanl.arpa