On Wed, Sep 7, 2016 at 11:21 PM, Martin Kühne <[email protected]> wrote: > As with read's -r flag, use <<'EOF' unless silly/potentially > devastating side effects are desired.
To add on to this, if reading lines, use IFS= as well so you don't
lose leading/trailing whitespace. e.g.:
while IFS= read -r line; do
something with "$line"
done < file
