[1] https://www.gnu.org/software/bash/manual/bash.html#Bash-Feat...
- https://tldp.org/LDP/abs/html/
- https://mywiki.wooledge.org/BashGuide
- https://www.shellcheck.net/ (can tell you if there's a Bash-specific replacement for a POSIX mechanic)
I'll be reading this book over the break: https://fabiensanglard.net/bash/
if [ $? -ne 0 ]; then
Will get flagged and an improvement will be suggested with an explanation on why [2]
[1] https://marketplace.visualstudio.com/items?itemName=timonwon...
https://learnxinyminutes.com/docs/bash/
It helpfully also links to the Bash manual:
https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash....
The "slowness" of bash versus some other shell is likely irrelevant, most of the time will be spent forking and executing other binaries anyway.
The speed difference is substantial. It's noticeable. This is indisputable. I would never use Bash for scripting when faster alternatives are available. But who cares, right.
The fact that Bash is big and slow is independent of what any HN commenter chooses to do or not do. It is a fact indepedent of any decision a particular script author chooses to make.