# t4015-diff-whitespace broken on cygwin's bash

2 messages from 2006-10-13 to 2006-10-13. Participants: Alex Riesen, Johannes Schindelin.
Thread: https://gitlist.dev/t/5914

## Alex Riesen, 2006-10-13 09:12

Subject: t4015-diff-whitespace broken on cygwin's bash
Message-ID: <81b0412b0610130212uca8371fg92db5081a8175cb3@mail.gmail.com>
URL: https://gitlist.dev/e/81b0412b0610130212uca8371fg92db5081a8175cb3%40mail.gmail.com

```
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.

```

## Johannes Schindelin, 2006-10-13 12:56

Subject: Re: t4015-diff-whitespace broken on cygwin's bash
Message-ID: <Pine.LNX.4.63.0610131454490.14200@wbgn013.biozentrum.uni-wuerzburg.de>
URL: https://gitlist.dev/e/Pine.LNX.4.63.0610131454490.14200%40wbgn013.biozentrum.uni-wuerzburg.de
In-Reply-To: <81b0412b0610130212uca8371fg92db5081a8175cb3@mail.gmail.com>

```
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

```
