|
|
|
|
|
by _bernd
7 days ago
|
|
> Bash scripts requires "set -eu" at minimum, when written by LLM or human. No. It does not.
Just write good scripts and catch errors and handle them. That's the same more less with every language.
And bash can be written in a way that it is sane and readable and maintainable. Just because you have seen a lot of junk in the language does not make the language bad per se. Sure there are a lot of languages "features" which are more then questionable but I want to rise again the point that it has its place and can be used in a good way. |
|
I first learned about shellcehck when I worked with someone that claimed they could write flawless bash scripts, then blamed me when their script broke because there was a space in a folder name. I ran his scripts through, resulting in him immediately adopting it, while he enjoyed eating crow.
[1] https://www.shellcheck.net