Date: Thu, 14 Oct 2004 19:21:08 +1000 From: Tim Robbins <tjr@freebsd.org> To: Andrey Chernov <ache@nagual.pp.ru>, Jens Schweikhardt <schweikh@schweikhardt.net>, freebsd-standards@FreeBSD.ORG Subject: Re: standards/54410: one-true-awk not POSIX compliant (no extended REs) Message-ID: <20041014092108.GA28831@cat.robbins.dropbear.id.au> In-Reply-To: <20041013201820.GA26102@nagual.pp.ru> References: <200410132000.i9DK0o3O052401@freefall.freebsd.org> <20041013201820.GA26102@nagual.pp.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <schweikh@schweikhardt.net> > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041014092108.GA28831>