This test fails on systems with recent-ish BSD regex libs, where a backslash followed by an alphabetic chatacter now throws REG_EESCAPE.
See https://reviews.freebsd.org/D10510 --- tests/cond-regexp3.sub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cond-regexp3.sub b/tests/cond-regexp3.sub index d939548c..bef44f8b 100644 --- a/tests/cond-regexp3.sub +++ b/tests/cond-regexp3.sub @@ -58,7 +58,7 @@ done [[ x =~ \\x ]] ; echo $? bs='\' -[[ x =~ ${bs}x ]] ; echo $? +[[ \[ =~ ${bs}[ ]] ; echo $? [[ x =~ $'\\'x ]] ; echo $? [[ x =~ '\'x ]] ; echo $? -- 2.45.0