local cmd="${valgrind} ${wine} ${re2c} $switches $x"
local outname_stdout="${outname}.stdout"
local outname_stderr="${outname}.stderr"
- $cmd 2>$outname_stderr >$outname_stdout
- cat $outname_stderr > $outname && rm $outname_stderr
- cat $outname_stdout >> $outname && rm $outname_stdout
+ $cmd 2>$outname_stderr 1>$outname_stdout
+ cat $outname_stderr $outname_stdout > $outname
+ rm $outname_stderr $outname_stdout
LC_ALL=C sed -i $outname \
-e "s,$x,`basename $x`,g" \
-e 's,/\* Generated by re2c .*\*/,/\* Generated by re2c \*/,g'