From owner-cvs-all Wed Feb 27 20:28:22 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 F389237B402; Wed, 27 Feb 2002 20:28:13 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 9812C5341; Thu, 28 Feb 2002 05:28:12 +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: obrien@FreeBSD.org Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/contrib/one-true-awk - Imported sources References: <200202190935.g1J9ZQg95683@freefall.freebsd.org> <20020227101410.B71097@dragon.nuxi.com> <20020227175336.A13894@dragon.nuxi.com> <20020227200513.B20718@dragon.nuxi.com> From: Dag-Erling Smorgrav Date: 28 Feb 2002 05:28:12 +0100 In-Reply-To: <20020227200513.B20718@dragon.nuxi.com> Message-ID: Lines: 25 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 "David O'Brien" writes: > Can you post the patch? Index: b.c =================================================================== RCS file: /home/ncvs/src/contrib/one-true-awk/b.c,v retrieving revision 1.1.1.2 diff -u -r1.1.1.2 b.c --- b.c 19 Feb 2002 09:35:24 -0000 1.1.1.2 +++ b.c 19 Feb 2002 10:03:06 -0000 @@ -587,8 +587,9 @@ dprintf( ("reparse <%s>\n", p) ); lastre = prestr = (uschar *) p; /* prestr points to string to be parsed */ rtok = relex(); + /* GNU compatibility: an empty regexp matches anything */ if (rtok == '\0') - FATAL("empty regular expression"); + return(op2(ALL, NIL, NIL)); np = regexp(); if (rtok != '\0') FATAL("syntax error in regular expression %s at %s", lastre, prestr); 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