From owner-freebsd-current Mon Jul 15 8:21: 6 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 0214337B401 for ; Mon, 15 Jul 2002 08:21:00 -0700 (PDT) Received: from ns1.gnf.org (ns1.gnf.org [63.196.132.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id A10CB43E6A for ; Mon, 15 Jul 2002 08:20:58 -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 g6FFKuX87297 for ; Mon, 15 Jul 2002 08:20:56 -0700 (PDT) (envelope-from gordon@FreeBSD.org) Received: by mail.gnf.org (Postfix, from userid 888) id 47ED111E512; Mon, 15 Jul 2002 08:20:58 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.gnf.org (Postfix) with ESMTP id 46F1311A572 for ; Mon, 15 Jul 2002 08:20:58 -0700 (PDT) Date: Mon, 15 Jul 2002 08:20:58 -0700 (PDT) From: Gordon Tetlow X-X-Sender: gordont@smtp.gnf.org To: current@freebsd.org Subject: bug in awk implementation? 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 I was parsing ldif format with awk (formerly gawk) and found a buglet in awk with the following script: BEGIN { RS="\n\n"; FS="(: |\n)"; } { print $2; } Fed the following output: dn: Some Such DN gidNumber: 1000 uidNumber: 1080 dn: Some Other DN gidNumber: 1000 uidNumber: 1405 This is what I get: one-true-awk: Some Such DN 1000 1080 Some Other DN 1000 1405 gawk: Some Such DN Some Other DN So, this seems to be a bug in the one-true-awk implementation. Any ideas on how to fix this? -gordon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message