awk versus gawk

Don Bowman don at sandvine.com
Tue Dec 2 10:48:25 PST 2003


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


More information about the freebsd-current mailing list