tests: avoid hpux11 test failure
* testsuite/title-case.sh: Correct printf usage not to trigger unspecified behavior for '\(\)'. Instead, just use sed with its -r option so those parentheses don't need any backslash at all. Reported by Bruno Haible in https://lists.gnu.org/r/sed-devel/2020-01/msg00008.html
This commit is contained in:
1 parent
598c3a0dd9
commit
5766a98647
1 file changed
+2
-2
@@ -26,8 +26,8 @@ c='\363' # sigma
|
||||
|
||||
printf "$a\\n$b\\n$c\\n" >in || framework_failure_
|
||||
for chr in "$a" "$b" "$c"; do
|
||||
printf '/\(\)\\1'"$chr"/Ip >prog || fail=1
|
||||
LC_ALL=el_GR.iso88597 sed -n -f prog in >out || fail=1
|
||||
printf '/()\\1'"$chr"/Ip >prog || fail=1
|
||||
LC_ALL=el_GR.iso88597 sed -r -n -f prog in >out || fail=1
|
||||
compare_ in out || fail=1
|
||||
done
|
||||
|
||||
|
||||
Reference in new issue
Block a user