BSD awk bug ?

Jamie Landeg-Jones jamie at catflap.org
Fri Aug 18 13:26:20 UTC 2017


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



More information about the freebsd-current mailing list