386/ix V2.0.2 breaks awk
Larry Campbell
campbell at redsox.bsw.com
Thu Sep 28 12:25:56 AEST 1989
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 at bsw.com 120 Fulton Street
wjh12!redsox!campbell Boston, MA 02146
More information about the Comp.unix.i386
mailing list