Shell Scripts Matter

Thiht on March 12, 2017

The shell is an odd beast. Although it goes against every current trend in software engineering (strong typing, compile ... [Read Full]
This is a single comment view full discussion

Excellent advice all around.

shellcheck is a winner.

I'd also add, split your script into functions and do most of the work inside "main" or similar func. That makes it cleaner which parts of the code are synchronously executed and which are functionality to be called later (an alternative to the subshell () advice above).

code of conduct - report abuse