From owner-freebsd-current Tue Jul 16 21:16:41 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 A9CDC37B400; Tue, 16 Jul 2002 21:16:38 -0700 (PDT) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEEBF43E4A; Tue, 16 Jul 2002 21:16:37 -0700 (PDT) (envelope-from crist.clark@attbi.com) Received: from blossom.cjclark.org ([12.234.91.48]) by sccrmhc02.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020717041637.NZCY6023.sccrmhc02.attbi.com@blossom.cjclark.org>; Wed, 17 Jul 2002 04:16:37 +0000 Received: from blossom.cjclark.org (localhost. [127.0.0.1]) by blossom.cjclark.org (8.12.3/8.12.3) with ESMTP id g6H4GWJK023044; Tue, 16 Jul 2002 21:16:32 -0700 (PDT) (envelope-from crist.clark@attbi.com) Received: (from cjc@localhost) by blossom.cjclark.org (8.12.3/8.12.3/Submit) id g6H4GTlH023043; Tue, 16 Jul 2002 21:16:29 -0700 (PDT) X-Authentication-Warning: blossom.cjclark.org: cjc set sender to crist.clark@attbi.com using -f Date: Tue, 16 Jul 2002 21:16:29 -0700 From: "Crist J. Clark" To: Gordon Tetlow Cc: Garrett Wollman , Robert Drehmel , current@FreeBSD.org Subject: Re: bug in awk implementation? Message-ID: <20020717041629.GA22967@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <20020716214355.GE20381@blossom.cjclark.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-URL: http://people.freebsd.org/~cjc/ 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 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