Date: Sun, 3 Oct 2010 15:09:35 +0200 From: =?iso-8859-2?Q?Roub=ED=E8ek_Zden=ECk?= <Zdenek.Roubicek@t-systems.cz> To: undisclosed-recipients:; Cc: freebsd-stable <freebsd-stable@freebsd.org> Subject: RE: is there a bug in AWK on 6.x and 7.x (fixed in 8.x)? Message-ID: <D9FBB57B75131949A71B706EB2074498BDF94F88@SRVPPE02.t-systems.cz> In-Reply-To: <4CA822CF.4060905@bsdforen.de> References: <4CA78EE3.9020005@quip.cz> <4CA82024.8010503@bsdforen.de>,<4CA822CF.4060905@bsdforen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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=3D"," { print $1"-"$2 }' GeoIPCountryWhois.csv
>
> You know that with this syntax FS=3D"," 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=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D9FBB57B75131949A71B706EB2074498BDF94F88>
