Re: BSD awk bug ?

From: Jamie Landeg-Jones <jamie_at_catflap.org>
Date: Fri, 18 Aug 2017 14:26:17 +0100
KIRIYAMA Kazuhiko <kiri_at_kx.openedu.org> wrote:

> Oops. I missed "STANDARDS" section. Thanks for pointed out.
>
> # But as it says in front "awk supports extended regular
> # expressions (EREs).  See re_format(7) for more information
> # on regular expressions.", I'd like to coinside with
> # re_format(7) spec.
>
> > 
> > Someone please correct me if I'm wrong.

I agree. It's a pain in the arse. In these situations, I've had to use gawk instead (You can set POSIXLY_CORRECT in gawk if it helps you feel cleaner! :-) )

There is also 'mawk' in ports/lang, but I've never tried that.

Cheers, Jamie
Received on Fri Aug 18 2017 - 11:26:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:12 UTC