Date: Tue, 16 Jul 2002 21:16:29 -0700 From: "Crist J. Clark" <crist.clark@attbi.com> To: Gordon Tetlow <gordon@FreeBSD.org> Cc: Garrett Wollman <wollman@lcs.mit.edu>, Robert Drehmel <robert@ferrari-electronic.de>, current@FreeBSD.org Subject: Re: bug in awk implementation? Message-ID: <20020717041629.GA22967@blossom.cjclark.org> In-Reply-To: <Pine.LNX.4.44.0207161657060.27685-100000@smtp.gnf.org> References: <20020716214355.GE20381@blossom.cjclark.org> <Pine.LNX.4.44.0207161657060.27685-100000@smtp.gnf.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 16, 2002 at 04:57:42PM -0700, Gordon Tetlow wrote:
> On Tue, 16 Jul 2002, Crist J. Clark wrote:
>
> > And since it is clearly documented, awk(1) says,
> >
> > Records
> > Normally, records are separated by newline characters.
> > You can control how records are separated by assigning
> > values to the built-in variable RS. If RS is any single
> > character, that character separates records. Otherwise,
> > RS is a regular expression. Text in the input that
> > matches this regular expression will separate the record.
> > However, in compatibility mode, only the first character
> > of its string value is used for separating records. If RS
> > is set to the null string, then records are separated by
> > blank lines. When RS is set to the null string, the new-
> > line character always acts as a field separator, in addi-
> > tion to whatever value FS may have.
> >
> > It is not a bug.
>
> No, you are quoting from the gawk(1) man page. The awk(1) man page makes
> no such statement.
I pulled it from a RELENG_4_6_0_RELEASE box where awk == gawk. I said
'awk(1)' since I typed 'man awk' to get it, but of course you're
right, I did mean gawk(1).
But the point is that there's still no bug in gawk or one-true-awk
with respect to how they deal with RS.
--
Crist J. Clark | cjclark@alum.mit.edu
| cjclark@jhu.edu
http://people.freebsd.org/~cjc/ | cjc@freebsd.org
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?20020717041629.GA22967>
