Re:Uacme: ACMEv2 client written in plain C with minimal depe...
by thayne on Sunday August 21, 2022 @11:32PM
(#32547010)
Bash is great for cases where you are gluing together a bunch of other commands. But it also has a lot of pitfalls, that something as large and complex as this will absolutely run into (to be fair, so does c).
As a specific example, the ACME protocol requires working with json. Doing this in bash is very difficult and error prone, especially if you want to avoid a dependency on something like jq, as this does.
Re:Uacme: ACMEv2 client written in plain C with minimal depe...
by whateveracct on Sunday August 21, 2022 @10:26PM
(#32546632)
ShellCheck and unofficial strict mode make bash a pretty nice language.
It has limitations, and quoting takes a hot minute to grok, but those don't come into play for a surprising amount of medium-large projects when used properly.
I use POSIX sh only and get by with maintainability and handling failure modes just fine.