From owner-freebsd-current Mon Jul 15 12:56:49 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D85AE37B400; Mon, 15 Jul 2002 12:56:45 -0700 (PDT) Received: from alpha.develop.ferrari.net (host1.ferrari-electronic.de [62.159.79.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 610A743E42; Mon, 15 Jul 2002 12:56:43 -0700 (PDT) (envelope-from robert@ferrari-electronic.de) Received: (from robert@localhost) by alpha.develop.ferrari.net (8.11.6/8.11.6/SuSE Linux 0.5) id g6FJl9012647; Mon, 15 Jul 2002 21:47:09 +0200 Date: Mon, 15 Jul 2002 21:47:09 +0200 From: Robert Drehmel To: "Brandon S. Allbery KF8NH" Cc: Gordon Tetlow , current@FreeBSD.ORG Subject: Re: bug in awk implementation? Message-ID: <20020715214709.A12624@alpha.develop.ferrari.net> References: <20020715173747.A11802@alpha.develop.ferrari.net> <1026759240.7028.1.camel@hilfy.ece.cmu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1026759240.7028.1.camel@hilfy.ece.cmu.edu> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello Brandon, On Mon, Jul 15, 2002 at 02:53:59PM -0400, Brandon S. Allbery KF8NH wrote: > On Mon, 2002-07-15 at 11:37, Robert Drehmel wrote: > > To me, this seems like a bug in 'gawk'. The AWK language uses > > only the first character in RS as the record separator, to my > > knowledge. > > Hm, I thought that was a gawk extension. From the GNU AWK 3.0.6 source: """ else if (RS->stlen > 1) { static int warned = FALSE; RS_regexp = make_regexp(RS->stptr, RS->stlen, IGNORECASE, TRUE); if (do_lint && ! warned) { warning("multicharacter value of `RS' is not portable"); warned = TRUE; } } """ You are right. However, I still consider it a bug. :-) ciao, -robert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message