help-bash
[Top][All Lists]
Advanced

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

Re: What is wrong with a regex?


From: Chet Ramey
Subject: Re: What is wrong with a regex?
Date: Mon, 6 Feb 2023 10:03:52 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

On 2/4/23 8:59 PM, Peng Yu wrote:

How did you get 2? Is this a new feature in bash? I get the above result in
bash 5.0.16(1)-release (ArchLinux) and 4.4.20(1)-release (AlmaLinux 8).

$ bash --version
GNU bash, version 5.1.8(1)-release (x86_64-apple-darwin20.3.0)

The bash version doesn't matter. The determining factor is the C library
extended regular expression support.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/




reply via email to

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