From: Junio C Hamano Date: Mon, 26 Oct 2015 19:13:23 GMT Subject: Re: [PATCH v2 0/2] Fix interactive rebase when the editor saves with CR/LF Message-ID: In-Reply-To: Johannes Schindelin writes: > A simple test with CR/LF line endings in a script reveals that it is > pretty solid: > > x=a > case "$x" in a) echo b;; esac > > prints out 'b', as expected. I do not see what this has to do with anything. The shell language parser when parsing a script may do the right thing, but the bug I was alluding to was that your 'read' does not seem to be removing the terminating (which is CRLF on your platform) after reading a line before splitting the contents on the line at IFS boundaries. > Again. If CR has no place in IFS, why does LF have a place in IFS? It > makes *no* sense to argue for one and against the other. See my message to Matthieu.