bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Regexp Provoking an Error Message Contains \y but the Error Message Disp


From: Neil R. Ormos
Subject: Regexp Provoking an Error Message Contains \y but the Error Message Displays \b
Date: Thu, 29 Oct 2020 14:33:09 -0500 (CDT)

The regexp in this short example lacks a closing right parenthesis.

> ~/.local/bin/gawk-5.1.0   'BEGIN{ if (a ~ /( \y / ) print "test"}'
gawk-5.1.0: cmd. line:1: error: Unmatched ( or \(: /( \b /

I have read the manual's explanation of why Gawk requires \y and not \b in 
regexps.

Is it intended that Gawk display "\b" in the error message?



I am using Gawk 5.1.0 built from the advertised release sources dated 
2020/04/14.

> ~/.local/bin/gawk-5.1.0 --version | head -1
GNU Awk 5.1.0, API: 3.0 (GNU MPFR 3.1.5, GNU MP 6.1.2)

(Apologies for not testing with the latest from Git.  When last I tried to 
build from Git, an unmet dependency interfered.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]