perl/Test-Simple: update to 1.302205
[oi-userland.git] / components / shell / bash / patches / solaris-018.posixexp2.tests.patch
blob6f8b4e5c9ae0c4492df6ddd65dcb0d0b6fea96ea
1 # solaris is compiled with --enable-xpg-echo-default=yes which makes some
2 # tests fail. Should we use printf '%s\n' "..." instead?
4 # Reported on bug-bash@gnu.org
6 --- tests/exp5.sub 2016-12-05 22:42:48.000000000 +0000
7 +++ tests/exp5.sub 2019-02-02 12:31:51.417537626 +0000
8 @@ -1,6 +1,6 @@
9 # expansions involving patterns
10 var='[hello'
11 -echo "${var//[/}"
12 +echo -E "${var//[/}"
14 red='\[\e[0;31m\]'
15 printf "%s\n" "${red//\\[\\e/}"
16 @@ -10,8 +10,8 @@ foo="${red//\\[\\e/}"
17 # foo == [0;31m\]
18 printf "%s\n" "${foo//[0;31m\\/}"
20 -echo "${var//[]/}"
21 -echo "${red//[]/}"
22 +echo -E "${var//[]/}"
23 +echo -E "${red//[]/}"
25 v=hello
26 foo='[:alpha:]'