awk versus gawk

From: Don Bowman <don_at_sandvine.com>
Date: Tue, 2 Dec 2003 13:48:22 -0500
So it appears current has switched 'gawk' to 'awk'. These
aren't 100% compatible, here's a little gotcha in case
someone else runs into it:

awk '{print var}' var='a
b'

works on 'gawk' (e.g. RELENG_4), but on current, will
 awk '{print var}' var='a
b'
awk: newline in string a
b... at source line 1

FYI, in case anyone else runs into it. Not sure if this
is just gawk being more expressive.

--don
Received on Tue Dec 02 2003 - 09:48:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:32 UTC