Re:Shell Style Guide from Google
by mcsaucy on Sunday June 05, 2016 @02:59PM
(#11842472)
Re: arrays -- I generally agree, but they are best solution to certain otherwise simple problems, like storing command arguments. `cmd $FLAGS` is objectively more dangerous than `cmd "${FLAGS[@]}"` due to the globbing and word-splitting issues the former exposes. In my experience, devs are more likely to opt for the former when the latter is forbidden than switch languages (because that's work).
[ Parent
| on HN ]
There are no comments on this comment yet.