Re: [dev] Shell style guide
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