Xref: utzoo comp.unix.i386:618 comp.bugs.sys5:1155 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!rutgers!dptg!att!cbnewsl!sar0 From: sar0@cbnewsl.ATT.COM (stephen.a.rago) Newsgroups: comp.unix.i386,comp.bugs.sys5 Subject: Re: 386/ix V2.0.2 breaks awk Summary: answer Message-ID: <2063@cbnewsl.ATT.COM> Date: 29 Sep 89 17:45:55 GMT References: <1456@redsox.bsw.com> Organization: AT&T Bell Laboratories Lines: 28 In article <1456@redsox.bsw.com>, campbell@redsox.bsw.com (Larry Campbell) writes: > A few weeks ago, I upgraded my 386/ix system from 2.0.1 to 2.0.2, and one of > my nightly news administration scripts broke. The problem is caused by a > bug in nawk, which in 2.0.2 seems to have become the standard awk. The > following examples demonstrate the bug: > > oawk is OK: > > % echo 'foo > > bar > > zot' | > > oawk ' > > ! ( /foo/ || /bar/ ) { printf "%s: no foo or bar here\n", $0 } > > ' > zot: no foo or bar here > % > > but nawk barfs: > awk: syntax error at source line 2 > > I wonder if this is AT&T's fault or ISC's? I experienced the same phenomenon on a 3B2 running vanilla SVR3.2. The problem seems to be fixed in SVR4.0, though. Steve Rago sar@attunix.att.com