Re: Word boundary anchors \< and \> not parsed correctly on the right si
From:
Paulo Marcel Coelho Aragão
Subject:
Re: Word boundary anchors \< and \> not parsed correctly on the right side of =~
Date:
Tue, 10 Jul 2018 12:07:13 -0300
User-agent:
NeoMutt/20171215
On Tue, Jul 10, 2018 at 10:50:05AM -0400, Chet Ramey wrote:
>> […] However, this indicates to me that bash recognizes \< \> as word
>> anchors:
> No, it doesn't. It indicates that the system's POSIX regular expression
> implementation has extensions.
>> 3. bash evaluates them correctly when used with parameter expansion
> No. It passes them to the system's POSIX regexp library function, which
> understands them as an extension.
A subtle point, which makes sense. It really brings home what the reference
manual means by "as in regex3". Thanks for shedding light on this !