bug-bash
[Top][All Lists]
Advanced

[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: Tue, 3 Apr 2018 11:28:40 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 4/2/18 10:59 PM, yangyajing wrote:
> Thanks for your reply.
> 
> The two lines of code are as follows which in the xstrmatch() function in 
> bash-4.3/lib/glob/smatch.c:
> 
>   if (mbsmbchar (string) == 0 && mbsmbchar (pattern) == 0)
>     return (internal_strmatch ((unsigned char *)pattern, (unsigned char
> *)string, flags));

Interesting. Do you think it should check for `[:' and not take the
single-byte character path if that's present?

Chet

-- 
``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]