Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jul 2002 21:47:09 +0200
From:      Robert Drehmel <robert@ferrari-electronic.de>
To:        "Brandon S. Allbery  KF8NH" <allbery@ece.cmu.edu>
Cc:        Gordon Tetlow <gordon@FreeBSD.ORG>, current@FreeBSD.ORG
Subject:   Re: bug in awk implementation?
Message-ID:  <20020715214709.A12624@alpha.develop.ferrari.net>
In-Reply-To: <1026759240.7028.1.camel@hilfy.ece.cmu.edu>
References:  <Pine.LNX.4.44.0207150812080.27685-100000@smtp.gnf.org> <20020715173747.A11802@alpha.develop.ferrari.net> <1026759240.7028.1.camel@hilfy.ece.cmu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020715214709.A12624>