Re: Bash removes unrequested characters in bracket expressions (not a range).

2018-12-03 Thread Chet Ramey
On 11/24/18 4:32 PM, Bize Ma wrote: > > Bash is removing characters not explicitly listed in a bracket > > expression (character range). > > In this example, it is removing digits from other languages. > > What is your locale? > >   > The locale used was en_US.utf-8 but also

Re: Bash removes unrequested characters in bracket expressions (not a range).

2018-12-03 Thread Chet Ramey
On 11/28/18 2:05 AM, Bize Ma wrote: > Chet Ramey (mailto:chet.ra...@case.edu>>) wrote: >   > > I can't reproduce this: > > > If you could take a look at https://unix.stackexchange.com/a/483835/265604 > you will see that it has been confirmed on "Ubuntu 17.10 (glibc 2.26) and on > Ubuntu

Re: Bash removes unrequested characters in bracket expressions (not a range).

2018-12-03 Thread Chet Ramey
On 11/28/18 2:45 AM, Bize Ma wrote: > Chet Ramey (mailto:chet.ra...@case.edu>>) wrote: > > On 11/24/18 2:32 PM, Chet Ramey wrote: > > >> But IMO locale collation should not be used for an explicit list. > > > > Collation order is used for each individual character in a bracket >

Re: Bash removes unrequested characters in bracket expressions (not a range).

2018-12-03 Thread Bize Ma
Chet Ramey () wrote: > I can't reproduce this: > If you could take a look at https://unix.stackexchange.com/a/483835/265604 you will see that it has been confirmed on "Ubuntu 17.10 (glibc 2.26) and on Ubuntu 18.04 (glibc 2.27), but it seems to be fixed on Ubuntu 18.10 (glibc 2.28)" It is

Re: Bash removes unrequested characters in bracket expressions (not a range).

2018-12-03 Thread Chet Ramey
On 11/28/18 2:29 AM, Bize Ma wrote: > Chet Ramey (mailto:chet.ra...@case.edu>>) wrote: > > On 11/24/18 4:32 PM, Bize Ma wrote: > >  [...] > > > I have been made aware that there is a > >   cstart = cend = FOLD (cstart); > > inside the `sm_loop.c` file that will convert into

Re: Bash removes unrequested characters in bracket expressions (not a range).

2018-12-03 Thread Bize Ma
Chet Ramey () wrote: > On 11/24/18 2:32 PM, Chet Ramey wrote: > > >> But IMO locale collation should not be used for an explicit list. > > > > Collation order is used for each individual character in a bracket > > expression when compared against the string, as posix specifies. > Yes, values

Re: Bash removes unrequested characters in bracket expressions (not a range).

2018-12-03 Thread Bize Ma
Chet Ramey () wrote: > On 11/24/18 4:32 PM, Bize Ma wrote: [...] > > I have been made aware that there is a > > cstart = cend = FOLD (cstart); > > inside the `sm_loop.c` file that will convert into a range many > > individual character. If that understanding is correct that is the > >

Re: Bash removes unrequested characters in bracket expressions (not a range).

2018-12-03 Thread Chet Ramey
On 11/24/18 2:32 PM, Chet Ramey wrote: >> But IMO locale collation should not be used for an explicit list. > > Collation order is used for each individual character in a bracket > expression when compared against the string, as posix specifies. > >> I have been made aware that there is a >>    

Re: Bash removes unrequested characters in bracket expressions (not a range).

2018-12-01 Thread Bize Ma
Chet Ramey () wrote: > I am going to forward the rest of our exchange to bug-bash; Great! > you left the mailing list off your replies for some reason. > > Chet > Since it was *you* who directed the answer only to me, I assumed (now seemingly incorrectly) that that was what you wanted to

Re: Bash removes unrequested characters in bracket expressions (not a range).

2018-11-24 Thread Bize Ma
Chet Ramey () wrote: > On 11/23/18 6:09 PM, Bize Ma wrote: > > > Bash Version: 4.4 > > Patch Level: 12 > > Release Status: release > > > Description: > > > > Bash is removing characters not explicitly listed in a bracket > > expression (character range). > > In this example, it is removing

Re: Bash removes unrequested characters in bracket expressions (not a range).

2018-11-24 Thread Chet Ramey
On 11/23/18 6:09 PM, Bize Ma wrote: > Bash Version: 4.4 > Patch Level: 12 > Release Status: release > > > > Description: > > Bash is removing characters not explicitly listed in a bracket > expression (character range). > In this example, it is removing digits from other languages. > > Also

Re: Bash removes unrequested characters in bracket expressions (not a range).

2018-11-24 Thread Chet Ramey
On 11/23/18 6:09 PM, Bize Ma wrote: > Bash Version: 4.4 > Patch Level: 12 > Release Status: release > > > > Description: > > Bash is removing characters not explicitly listed in a bracket > expression (character range). > In this example, it is removing digits from other languages. What is

Bash removes unrequested characters in bracket expressions (not a range).

2018-11-23 Thread Bize Ma
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: Linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale'