Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jul 2002 12:14:07 -0400 (EDT)
From:      Garrett Wollman <wollman@lcs.mit.edu>
To:        Gordon Tetlow <gordont@gnf.org>
Cc:        current@FreeBSD.ORG
Subject:   Re: bug in awk implementation?
Message-ID:  <200207151614.g6FGE7h3083649@khavrinen.lcs.mit.edu>
In-Reply-To: <Pine.LNX.4.44.0207150853570.27685-100000@smtp.gnf.org>
References:  <20020715173747.A11802@alpha.develop.ferrari.net> <Pine.LNX.4.44.0207150853570.27685-100000@smtp.gnf.org>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Mon, 15 Jul 2002 09:06:36 -0700 (PDT), Gordon Tetlow <gordont@gnf.org> said:

> Ah, okay, there is a distinct lack of documentation to that fact. I have 
> figured out that I can just set RS="" and that does the same thing. I 
> suppose it would be helpful to have an awk book around. =)

The Standard is clear:

# The first character of the string value of RS shall be the input
# record separator; a <newline> by default. If RS contains more than
# one character, the results are unspecified. If RS is null, then
# records are separated by sequences consisting of a <newline> plus
# one or more blank lines, leading or trailing blank lines shall not
# result in empty records at the beginning or end of the input, and a
# <newline> shall always be a field separator, no matter what the
# value of FS is.

-GAWollman


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?200207151614.g6FGE7h3083649>