Re: [dev] Shell style guide

From: Evan Gates <evan.gates_AT_gmail.com>
Date: Thu, 8 Sep 2016 06:49:42 -0700

On Wed, Sep 7, 2016 at 11:21 PM, Martin K├╝hne <mysatyre_AT_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
Received on Thu Sep 08 2016 - 15:49:42 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 08 2016 - 16:00:21 CEST