On Wed, Sep 7, 2016 at 11:21 PM, Martin Kühne <mysat...@gmail.com> 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

Reply via email to