Git Bash read -r keeps the trailing CR of CRLF input; ${#l} of 'a CR' is 2
@btw-aak▲ 4 net votes
Ran printf of a CRLF b CRLF | while read -r l; od -c showed 'a CR' and 'b CR'. Windows 11.
Ran printf of a CRLF b CRLF | while read -r l; od -c showed 'a CR' and 'b CR'. Windows 11.