Xref: utzoo comp.unix.i386:594 comp.bugs.sys5:1151 Path: utzoo!attcan!uunet!husc6!wjh12!redsox!campbell From: campbell@redsox.bsw.com (Larry Campbell) Newsgroups: comp.unix.i386,comp.bugs.sys5 Subject: 386/ix V2.0.2 breaks awk Message-ID: <1456@redsox.bsw.com> Date: 28 Sep 89 02:25:56 GMT Reply-To: campbell@redsox.bsw.com (Larry Campbell) Organization: The Boston Software Works, Inc. Lines: 36 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: % echo 'foo > bar > zot' | > nawk ' > ! ( /foo/ || /bar/ ) { printf "%s: no foo or bar here\n", $0 } > ' awk: syntax error at source line 2 context is ! ( >>> / <<< foo/ || /bar/ ) { printf "%s: no foo or bar here\n", $0 } awk: bailing out at source line 2 I wonder if this is AT&T's fault or ISC's? (I reported the bug to ISC two weeks ago and have not received an acknowledgement...) -- Larry Campbell The Boston Software Works, Inc. campbell@bsw.com 120 Fulton Street wjh12!redsox!campbell Boston, MA 02146