From owner-freebsd-current Mon Jul 15 9:14:12 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 9D25637B401 for ; Mon, 15 Jul 2002 09:14:09 -0700 (PDT) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16A1643E58 for ; Mon, 15 Jul 2002 09:14:09 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.3/8.12.3) with ESMTP id g6FGE8RC083652; Mon, 15 Jul 2002 12:14:08 -0400 (EDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.3/8.12.3/Submit) id g6FGE7h3083649; Mon, 15 Jul 2002 12:14:07 -0400 (EDT) (envelope-from wollman) Date: Mon, 15 Jul 2002 12:14:07 -0400 (EDT) From: Garrett Wollman Message-Id: <200207151614.g6FGE7h3083649@khavrinen.lcs.mit.edu> To: Gordon Tetlow Cc: current@FreeBSD.ORG Subject: Re: bug in awk implementation? In-Reply-To: References: <20020715173747.A11802@alpha.develop.ferrari.net> 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 < 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 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 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 # 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