From owner-freebsd-stable@FreeBSD.ORG Sun Oct 3 13:24:34 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48B8E1065673 for ; Sun, 3 Oct 2010 13:24:34 +0000 (UTC) (envelope-from Zdenek.Roubicek@t-systems.cz) Received: from mx1.t-systems.cz (mx1o.t-systems.cz [212.67.76.232]) by mx1.freebsd.org (Postfix) with ESMTP id C961D8FC17 for ; Sun, 3 Oct 2010 13:24:32 +0000 (UTC) X-AuditID: d4434ce6-b7be3ae000004333-85-4ca880889016 Received: from SRVPP07.t-systems.cz (Unknown_Domain [10.246.109.18]) by mx1.t-systems.cz (TSSMSGW) with SMTP id FA.11.17203.88088AC4; Sun, 3 Oct 2010 15:09:28 +0200 (CEST) To: undisclosed-recipients:; Received: from SRVPPE02.t-systems.cz ([10.246.109.16]) by SRVPP07.t-systems.cz ([10.246.109.18]) with mapi; Sun, 3 Oct 2010 15:09:35 +0200 From: =?iso-8859-2?Q?Roub=ED=E8ek_Zden=ECk?= CC: freebsd-stable Date: Sun, 3 Oct 2010 15:09:35 +0200 Thread-Topic: is there a bug in AWK on 6.x and 7.x (fixed in 8.x)? Thread-Index: ActixJ5Im9X2TRomTdymbMlrPa7WhAANp8a/ Message-ID: References: <4CA78EE3.9020005@quip.cz> <4CA82024.8010503@bsdforen.de>,<4CA822CF.4060905@bsdforen.de> In-Reply-To: <4CA822CF.4060905@bsdforen.de> Accept-Language: en-US, cs-CZ Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, cs-CZ Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Brightmail-Tracker: AAAAAA== Subject: RE: is there a bug in AWK on 6.x and 7.x (fixed in 8.x)? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Oct 2010 13:24:34 -0000 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=