[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A question about bash change for efficiency speedups in multibyte lo
From: |
Chet Ramey |
Subject: |
Re: A question about bash change for efficiency speedups in multibyte locales |
Date: |
Mon, 2 Apr 2018 15:54:32 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 3/29/18 9:57 PM, yangyajing wrote:
> Hello, I recently did lsb-test-core on ubuntu 16.04. There is a test
> that can be successful in bash 4.1 but fails in bash 4.3.
>
> The test comment is : bash tp10.sh.
>
> The content of tp10.sh is : echo [[:xdigit:]] [[:hyphen:]].
>
> And this test sets a multibyte locale that defines a charclass
> containing ''hyphen''.
>
> When I run the tp10.sh script with bash, I find that ''hyphen'' can be
> recognized in bash4.1 but not in bash4.3.
>
> By comparing the source code, I found that compared to bash4.1, there
> are 2 more lines of code in bash4.3, which in the xstrmatch() function
> in bash/lib/glob/smatch.c.
> The two lines of code are as follows:
>
>
Which two lines?
--
``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/
- Re: A question about bash change for efficiency speedups in multibyte locales,
Chet Ramey <=