Re: string replace with multibyte chars and extglob fails with bash-4.2

2012-04-22 Thread Chet Ramey
On 4/21/12 3:27 PM, Andreas Schwab wrote: > Mike Frysinger writes: > >> first set your locale to something unicode based: >> export LC_ALL=en_US.UTF-8 >> >> then try the simple script (from Ulrich Müller): >> $ cat test.sh >> shopt -s extglob >> text="aaaäöü" >> echo "${text} ${text//?aa} ${text/

Re: string replace with multibyte chars and extglob fails with bash-4.2

2012-04-21 Thread Andreas Schwab
Mike Frysinger writes: > first set your locale to something unicode based: > export LC_ALL=en_US.UTF-8 > > then try the simple script (from Ulrich Müller): > $ cat test.sh > shopt -s extglob > text="aaaäöü" > echo "${text} ${text//?aa} ${text//\aaa}" > > with bash-4.1_p2, i get: > aaaäöü äöü äöü

Re: string replace with multibyte chars and extglob fails with bash-4.2

2012-04-21 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/21/12 12:43 PM, Mike Frysinger wrote: > first set your locale to something unicode based: > export LC_ALL=en_US.UTF-8 > > then try the simple script (from Ulrich Müller): > $ cat test.sh > shopt -s extglob > text="aaaäöü" > echo "${text} ${text//

string replace with multibyte chars and extglob fails with bash-4.2

2012-04-21 Thread Mike Frysinger
first set your locale to something unicode based: export LC_ALL=en_US.UTF-8 then try the simple script (from Ulrich Müller): $ cat test.sh shopt -s extglob text="aaaäöü" echo "${text} ${text//?aa} ${text//\aaa}" with bash-4.1_p2, i get: aaaäöü äöü äöü but with bash-4.2_p8 ... 4.2_p24 (just what