3 ms·
This was one of the annoyances that I aimed to solve with my own shell, murex. It has predictable if blocks but also try blocks. I used to be an advocate for `
by hnlmorg 5y ago
This was one of the annoyances that I aimed to solve with my own shell, murex. It has predictable if blocks but also try blocks.
I used to be an advocate for `set -e` etc but these days I've come to the conclusion that the POSIX standard just needs to be retired for simple shell scripts, even if it is just for personal use. And it doesn't have to be my shell language that replaces it, but it shouldn't be something aiming for Bash/sh compatibility. This is probably going to be an unpopular opinion though but I base it on years of Bash/sh use and then getting fed up with it enough to write me own shell + scripting language.
As for anything that needs to be used and maintained by a team, that's probably around the time you have to question if shell script is even the right solution and whether you need to break out into Python (though Python has it's own issues too so one has to make an informed decision based on your own business requirements).