René Scharfe <l.s.r@xxxxxx> writes: >> @@ -12,7 +12,7 @@ create_crlf_ref () { >> cat >.crlf-orig-$branch.txt && >> cat .crlf-orig-$branch.txt | append_cr >.crlf-message-$branch.txt && > > Useless use of cat. Very good eyes. > OK, back on topic: Adding CRs explicitly instead of relying on grep to > pass them through (which it doesn't on MinGW) also ignores the return > value of grep as a side effect of the pipe: > > grep 'Body' .crlf-orig-$branch.txt | append_cr >.crlf-body-$branch.txt && Very nice.