threads / discuss / 5914

t4015-diff-whitespace broken on cygwin's bash

Subject: t4015-diff-whitespace broken on cygwin's bash

## tl;dr

2 messages between Oct 13, 2006 and Oct 13, 2006.

replies: 1people: 2as markdown or json

Alex Riesen· Oct 13, 2006, 09:12 UTC · lore
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· Oct 13, 2006, 12:56 UTC · re: Alex Riesen · lore

Re: t4015-diff-whitespace broken on cygwin's bash

Hi,
On Fri, 13 Oct 2006, Alex Riesen wrote:
Show 8 quoted lines
> 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

← back to recent threads