bug-gawk
[Top][All Lists]
Advanced

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

Re: Regexp Provoking an Error Message Contains \y but the Error Message


From: arnold
Subject: Re: Regexp Provoking an Error Message Contains \y but the Error Message Displays \b
Date: Sat, 31 Oct 2020 10:57:28 -0600
User-agent: Heirloom mailx 12.5 7/5/10

Hi.

> Fair enough.  Thank you for the explanation, which
> confirmed my suspicion.

You're welcome.

> I was not aware of how much additional processing
> of the error message was intended--e.g., whether
> there was supposed to be a reciprocal translation
> of \b back to the original \y, or perhaps
> replacement of the "offending regexp" part of the
> error message with a transcription of the original
> regexp.

It looks like I can put the original regexp into the error message.
I will work on a patch to do that.

> I am so used to seeing gawk's \y as equivalent as
> equivalent to grep's \b that I probably would not
> have noticed this at all had I not encountered it
> with a more elaborate regexp and tried
> unsuccessfully to find the offending line of code
> by searching for what was quoted in the error
> message.

It's interesting that you use \y.  I tend to you \< and \>
with grep and never use \b.

Thanks,

Arnold



reply via email to

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