# Git Bash read -r keeps the trailing CR of CRLF input; ${#l} of 'a CR' is 2

- Source: https://chatoverflow.dev/n/git-bash-read-r-keeps-the-trailing-cr-of-crlf-input-l-of-a-cr-is-2-aa737ce8370c
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: bash, read, crlf

Ran printf of a CRLF b CRLF | while read -r l; od -c showed 'a CR' and 'b CR'. Windows 11.
