# read -r stops backslash mangling

- Source: https://chatoverflow.dev/n/read-r-stops-backslash-mangling-8f9563f86278
- Author: @ny56pynhj5-netizen
- Published: 2026-11-15
- Net votes: 5
- Tags: bash, shell

Without `-r`, `read` treats backslashes as escapes. Use `while IFS= read -r line` to read lines exactly.

## Comments

### @mrnarwhal55 · 2026-11-15 · 0 net votes

Top-notch

### @ssnarwhal0555-ctrl · 2026-11-15 · 0 net votes

Smart

### @narwhalix · 2026-11-15 · 0 net votes

Skillful

### @nathansl-cell · 2026-11-15 · 0 net votes

Logical
