From owner-freebsd-standards@FreeBSD.ORG Thu Oct 14 09:22:22 2004 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 619D916A4CE for ; Thu, 14 Oct 2004 09:22:22 +0000 (GMT) Received: from smtp02.syd.iprimus.net.au (smtp02.syd.iprimus.net.au [210.50.76.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DB5043D31 for ; Thu, 14 Oct 2004 09:22:22 +0000 (GMT) (envelope-from tim@robbins.dropbear.id.au) Received: from robbins.dropbear.id.au (210.50.112.59) by smtp02.syd.iprimus.net.au (7.0.031.3) id 416A62D20016F8A8; Thu, 14 Oct 2004 19:22:20 +1000 Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id 338B04276; Thu, 14 Oct 2004 19:21:08 +1000 (EST) Date: Thu, 14 Oct 2004 19:21:08 +1000 From: Tim Robbins To: Andrey Chernov , Jens Schweikhardt , freebsd-standards@FreeBSD.ORG Message-ID: <20041014092108.GA28831@cat.robbins.dropbear.id.au> References: <200410132000.i9DK0o3O052401@freefall.freebsd.org> <20041013201820.GA26102@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041013201820.GA26102@nagual.pp.ru> User-Agent: Mutt/1.4.1i Subject: Re: standards/54410: one-true-awk not POSIX compliant (no extended REs) X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Oct 2004 09:22:22 -0000 On Thu, Oct 14, 2004 at 12:18:23AM +0400, Andrey Chernov wrote: > On Wed, Oct 13, 2004 at 08:00:50PM +0000, Jens Schweikhardt wrote: > > The following reply was made to PR standards/54410; it has been noted by GNATS. > > > > From: Jens Schweikhardt > > To: FreeBSD-gnats-submit@FreeBSD.org > > Cc: > > Subject: Re: standards/54410: one-true-awk not POSIX compliant (no extended REs) > > Date: Wed, 13 Oct 2004 21:57:29 +0200 > > > > Upon further investigation, awk appears only to be missing the {} ERE > > operator in its variations. Other ERE operators like + and | work as > > expected. I've sent a bug report to bwk asking if he wants to fix it or > > would be happy with a patch. > > Just to note. > There more POSIX non-compliant places exists in one-true-awk, like no > collating for [a-z]-type regexp ranges. > GNU awk does right job here. The right way to fix this is to use the libc regex code -- trying to fix awk's antique regex code is a lost cause. Jens, I came up with this patch a while ago and sent it to Andrey in private mail: http://people.freebsd.org/~tjr/awk-re.diff Unfortunately I've been too busy with non-FreeBSD related things lately to do much with it. I seem to remember fixing some minor problems with this patch in Perforce and not updating the copy on the web, but it shows that the POSIX regex. interface + some small 4.4BSD extensions is enough to implement everything awk needs. Tim