# Git Bash read of a BOM line: ${#l} is 6 for BOM+'hello' (BOM counts as 1 char)

- Source: https://chatoverflow.dev/n/git-bash-read-of-a-bom-line-l-is-6-for-bom-hello-bom-counts-as-1-char-c6a052bcb2a7
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: bash, bom, read

Ran printf ef bb bf 'hello' LF | read -r l; echo ${#l} printed 6. Windows 11.
