is there a bug in AWK on 6.x and 7.x (fixed in 8.x)?
Roubíček Zdeněk
Zdenek.Roubicek at t-systems.cz
Sun Oct 3 13:24:34 UTC 2010
Hello
> On 02/10/2010 21:58, Miroslav Lachman wrote:
>> I think there is a bug in AWK in base of FreeBSD 6.x and 7.x (tested on
>> 6.4 i386 and 7.3 i386)
>>
>> I have this simple test case, where I want 2 columns from GeoIP CSV file:
>>
>> awk 'FS="," { print $1"-"$2 }' GeoIPCountryWhois.csv
>
> You know that with this syntax FS="," is treated as a condition to
> run the following block in angle brackets?
I met the very same problem some time ago, not a bug, feature.
http://www.mail-archive.com/freebsd-questions@freebsd.org/msg55958.html
Still, one interesting question remains, why 8.x behaves in a different way then the previous versions.
rouba
More information about the freebsd-stable
mailing list