From owner-freebsd-current Tue Jul 16 16:57:50 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 0DAEE37B400; Tue, 16 Jul 2002 16:57:48 -0700 (PDT) Received: from ns1.gnf.org (ns1.gnf.org [63.196.132.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C31543E3B; Tue, 16 Jul 2002 16:57:47 -0700 (PDT) (envelope-from gordon@FreeBSD.org) Received: from mail.gnf.org (smtp.gnf.org [172.25.11.11]) by ns1.gnf.org (8.11.6/8.11.6) with ESMTP id g6GNvdX01645; Tue, 16 Jul 2002 16:57:39 -0700 (PDT) (envelope-from gordon@FreeBSD.org) Received: by mail.gnf.org (Postfix, from userid 888) id A640F11E512; Tue, 16 Jul 2002 16:57:42 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.gnf.org (Postfix) with ESMTP id A50C311A572; Tue, 16 Jul 2002 16:57:42 -0700 (PDT) Date: Tue, 16 Jul 2002 16:57:42 -0700 (PDT) From: Gordon Tetlow X-X-Sender: gordont@smtp.gnf.org To: "Crist J. Clark" Cc: Garrett Wollman , Robert Drehmel , Subject: Re: bug in awk implementation? In-Reply-To: <20020716214355.GE20381@blossom.cjclark.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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, 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