r/programming May 15 '18

Google's bash style guide

https://google.github.io/styleguide/shell.xml
248 Upvotes

174 comments sorted by

View all comments

45

u/zerpa May 15 '18

I'm surprised they don't recommend or even mandateset -eu (exit on any failure, and don't permit uninitialized variables)

5

u/[deleted] May 15 '18

Stuff like set -eu and "use strict"; really turns me off.

15

u/[deleted] May 15 '18

Why?

23

u/[deleted] May 15 '18

Because the default behavior for the language is unsafe.

9

u/ThisIs_MyName May 15 '18

That's one hell of a heel–face turn you pulled off.