Thanks to Abs62, who noted that under Windows (in MSYS) tests fail
because '2>"$outc.stderr"' dumps CRLF to file instead of LF
and proposed a fix:
sed -i 's/\r//g' "$outc.stderr"
&& cp "../../$x" "$outx"
# run re2c
$valgrind $wine ../../$re2c $switches "$outx" 2>"$outc.stderr" 1>&2
+ # on windows stdout and stderr contain CR LF, cut CR to match test results
+ sed -i 's/\r//g' "$outc.stderr"
# paste all files dropped by re2c into output file
rm "$outx" && find . -type f \
| lc_run sort \