Follow

If you’re writing a bash script, you should probably be using the Community Bash Style Guide (github.com/azet/community_bash).

Also, look through the slides for Beautiful Bash: Let's make reading and writing bash scripts fun again! (slideshare.net/a_z_e_t/inprese)

@aral Some good stuff in there. The admonition to use “set -eu -o pipefail” was new to me. Related, I can’t believed it when I find a Perl script that doesn’t use “warnings”.

@sconlan @aral indeed, very good stuff. I am bit surprised that shfmt is not listed as shell/bash formatter.

@aral there are accessibility arguments for using tabs rather than spaces though: alexandersandberg.com/tabs-for

Sign in to participate in the conversation
Aral’s Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!