Re: Bug report
- From
- Andrew Wong <andrew.kw.w.lists@gmail.com>
- Date
- Oct 4, 2012, 17:01 UTC
- Message-ID
- <506DC100.5060307@gmail.com>
- In-Reply-To
- <506DB655.8020504@emsoftware.com>
On 10/04/2012 12:16 PM, John Whitney wrote:
Show 5 quoted lines
> This problem occurs on Mac, Windows, and Linux, and > with multiple versions of git. Note that in my script a CR > is appended to test.txt. On the Mac, you can generate this > in Terminal by pressing Ctrl-V Ctrl-M. Or, alternatively, > just download and run the script like this: "sh git_failure.sh"
Ah, yes. I can reproduce the problem. I was pasting the lines from your script. And I saw a new line in the shell when I pasted, so I thought the ^M was kept properly. But somewhere during the pasting, the ^M must have got translated to a \n automatically. Silly me.