Subject: awk regression
To: None <tech-userlevel@netbsd.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: tech-userlevel
Date: 04/16/2007 09:07:48
Hello

I burnt myself hot when upgrading a pre NetBSD 2 box because awk regressed. 
This caused chaos in a few administrative shell scripts.

Here is the problem:

# Works on 2.x, not on 3.x
awk -vf=x 'BEGIN {print f}' /dev/null
# Works on any release
awk -v f=x 'BEGIN {print f}' /dev/null

The problem is rather old, but it's not a reason for not handling it. 
Did someone give it a try in the past?

-- 
Emmanuel Dreyfus
manu@netbsd.org