From owner-cvs-all Wed Feb 27 20: 0: 6 2002 Delivered-To: cvs-all@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 88D1937B405; Wed, 27 Feb 2002 19:59:58 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id CB9975341; Thu, 28 Feb 2002 04:59:56 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "Brian F. Feldman" Cc: obrien@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/contrib/one-true-awk - Imported sources References: <200202280333.g1S3Xmf47324@green.bikeshed.org> From: Dag-Erling Smorgrav Date: 28 Feb 2002 04:59:56 +0100 In-Reply-To: <200202280333.g1S3Xmf47324@green.bikeshed.org> Message-ID: Lines: 21 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Brian F. Feldman" writes: > Is there something unexpected about empty regexps? One-true-awk considers the following an error: awk '// { do_something(); }' the solution is to either use the following (equivalent) code: awk '{ do_something(); }' or apply a simple patch to One-true-awk to make it accept empty regexps. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message