2 ms·
I don't share the "oh my, why bash, why not English then?" sentiment in the comments. I've done a bunch of DSLs (CLI with some elaborate syntax really) that co
by fforflo 2y ago
I don't share the "oh my, why bash, why not English then?" sentiment in the comments.
I've done a bunch of DSLs (CLI with some elaborate syntax really) that compile to bash as a target. It just works for me. Bash is always available; the constructs you can use are there (coreutils are mostly enough for the primitives and xargs for parallelization)
It has been great so far for basic cases. Where things get complex (as other's have said) is handling failures, errors and intrinsic cases. That's when you're reminded why people didn't stuck with bash in the first place and we got other scripting languages.