If you’re writing a bash script, you should probably be using the Community Bash Style Guide (

Also, look through the slides for Beautiful Bash: Let's make reading and writing bash scripts fun again! (

@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:

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!