Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security
uname output: Linux hk 4.15.0-62-generic #69-Ubuntu SMP Wed Sep 4 20:55:53
UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Machine
Thanks for the reply. I was wrong in my report. It does match values like
aab and aab in its original form.
What is wrong is the description `zero or one instances of 'a''. But if we
correct the right hand side word to be `[[:space:]]*(a)?b' that it does
match what the description says.(the
On 20.9. 21:39, Chet Ramey wrote:
The portion of the manual before the example explains BASH_REMATCH and
BASH_REMATCH[0]. It also says "a sequence of characters in the value..."
when describing the pattern.
Yeah, though the preceding paragraph contains both the general
description of the reg
On 9/20/19 9:30 AM, Ilkka Virta wrote:
> On 20.9. 15:48, Greg Wooledge wrote:
>> but after the regex-glob-thing, it says:
>>
>> That means values like ‘aab’ and ‘ aab’ will match
>>
>> So there's a shift in intent between a? and a+ in what's supposed to be
>> a regular expression. Although
On 9/20/19 1:40 AM, hk wrote:
> Bash Version: 5.0
> Patch Level: 0
> Release Status: release
>
> Description:
> On section 3.2.4.2 of Bash Reference Manual, the example on*
> [[...]]* (page 13 in the PDF) is incorrect. Specifically, the example say *[[
> $line =~ [[:space:]]*?(a)b ]]* wi
On 20.9. 15:48, Greg Wooledge wrote:
but after the regex-glob-thing, it says:
That means values like ‘aab’ and ‘ aab’ will match
So there's a shift in intent between a? and a+ in what's supposed to be
a regular expression. Although of course the sentence is *literally*
true because the
On Fri, Sep 20, 2019 at 01:40:00PM +0800, hk wrote:
> Description:
> On section 3.2.4.2 of Bash Reference Manual, the example on*
> [[...]]* (page 13 in the PDF) is incorrect. Specifically, the example say *[[
> $line =~ [[:space:]]*?(a)b ]]* will match values like *'aab'* and*
> 'aab*
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security
uname output: Linux hk 4.15.0-62-generic #69-Ubuntu SMP Wed Sep 4 20:55:53
UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Machine