LLVM :: Other/lit-quoting.txt currently FAILs on Solaris:
llvm/test/Other/lit-quoting.txt:8:9: error: CHECK2: expected string not found in input CHECK2: {{^a\[b\\c$}} ^ <stdin>:1:1: note: scanning from here a[b ^
This happens because echo with backslashes or special characters is unportable, as
extensively documented in the Autoconf manual. In the case at hand,
echo 'a[b\c' yields a[b\c on Linux, but a[b (no newline) on Solaris.
This patch fixes this by using the portable alternative suggested in the Autoconf manual.
Tested on amd64-pc-solaris2.11, sparcv9-sun-solaris2.11, and x86_64-pc-linux-gnu.