Date: Tue, 16 Jul 2002 16:57:42 -0700 (PDT) From: Gordon Tetlow <gordon@FreeBSD.org> To: "Crist J. Clark" <cjc@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: <Pine.LNX.4.44.0207161657060.27685-100000@smtp.gnf.org> In-Reply-To: <20020716214355.GE20381@blossom.cjclark.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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. -gordon 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?Pine.LNX.4.44.0207161657060.27685-100000>