It seem to cut off the last CR from text-here. I.e.
cat <<EOF >x ... CR at end^M EOF
becomes just "CR at end" in the output file, that is ^M (aka CR) stripped. The attached workaround worked for me, but is, as usual, too ugly to sign it off.
threads / discuss / 5914
Subject: t4015-diff-whitespace broken on cygwin's bash
It seem to cut off the last CR from text-here. I.e.
cat <<EOF >x ... CR at end^M EOF
becomes just "CR at end" in the output file, that is ^M (aka CR) stripped. The attached workaround worked for me, but is, as usual, too ugly to sign it off.
Re: t4015-diff-whitespace broken on cygwin's bash
Hi,
On Fri, 13 Oct 2006, Alex Riesen wrote:
> It seem to cut off the last CR from text-here. I.e. > > cat <<EOF >x > ... > CR at end^M > EOF > > becomes just "CR at end" in the output file, that is ^M (aka CR) stripped.
I can confirm this problem. Strange. I always thought that "cat << EOF" was meant to copy verbatim. I think it is a bug in cygwin.
The only sensible workaround I can think of is to put the files into a directory t4015/ like t4013 does.
Ciao, Dscho