[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
string replace with multibyte chars and extglob fails with bash-4.2
From: |
Mike Frysinger |
Subject: |
string replace with multibyte chars and extglob fails with bash-4.2 |
Date: |
Sat, 21 Apr 2012 12:43:29 -0400 |
User-agent: |
KMail/1.13.7 (Linux/3.4.0-rc1; KDE/4.6.5; x86_64; ; ) |
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 i have locally):
aaaäöü aaaäöü aaaäöü
seems like a bug to me
-mike
signature.asc
Description: This is a digitally signed message part.
- string replace with multibyte chars and extglob fails with bash-4.2,
Mike Frysinger <=