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    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to