386/ix V2.0.2 breaks awk

stephen.a.rago sar0 at cbnewsl.ATT.COM
Sat Sep 30 03:45:55 AEST 1989


In article <1456 at redsox.bsw.com>, campbell at 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 at attunix.att.com
 



More information about the Comp.unix.i386 mailing list