Re: is there a bug in AWK on 6.x and 7.x (fixed in 8.x)?

2010-10-04 Thread Peter C. Lai
Is this becuase the behavior of "FS=" was changed to match the behavior of awk -F On 2010-10-02 09:58:27PM +0200, 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 fr

Re: is there a bug in AWK on 6.x and 7.x (fixed in 8.x)?

2010-10-03 Thread poyopoyo
At Sun, 3 Oct 2010 15:09:35 +0200, Roub$(D+?+-(Bek Zden$(D+5(Bk wrote: > >> awk 'FS="," { print $1"-"$2 }' GeoIPCountryWhois.csv This code is equivalent to awk '(FS=","){} { print $1"-"$2 }' GeoIPCountryWhois.csv so I think it is OK not to separate the first line with ",". However, from the

RE: is there a bug in AWK on 6.x and 7.x (fixed in 8.x)?

2010-10-03 Thread Roubíček Zdeněk
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 > >

Re: is there a bug in AWK on 6.x and 7.x (fixed in 8.x)?

2010-10-02 Thread Dominic Fandrey
On 03/10/2010 08:18, Dominic Fandrey wrote: > 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 $

Re: is there a bug in AWK on 6.x and 7.x (fixed in 8.x)?

2010-10-02 Thread Dominic Fandrey
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 wit

Re: is there a bug in AWK on 6.x and 7.x (fixed in 8.x)?

2010-10-02 Thread Damian Weber
On Sat, 2 Oct 2010, Miroslav Lachman wrote: > Date: Sat, 02 Oct 2010 21:58:27 +0200 > From: Miroslav Lachman <000.f...@quip.cz> > To: freebsd-stable > Subject: is there a bug in AWK on 6.x and 7.x (fixed in 8.x)? > > I think there is a bug in AWK in base of FreeBSD 6.x and 7.x (tested on 6.4 >

Re: is there a bug in AWK on 6.x and 7.x (fixed in 8.x)?

2010-10-02 Thread Miroslav Lachman
Damian Weber wrote: On Sat, 2 Oct 2010, Miroslav Lachman wrote: Date: Sat, 02 Oct 2010 21:58:27 +0200 From: Miroslav Lachman<000.f...@quip.cz> To: freebsd-stable Subject: is there a bug in AWK on 6.x and 7.x (fixed in 8.x)? I think there is a bug in AWK in base of FreeBSD 6.x and 7.x (tested