3 ms·
Shell scripting is not bad these days. There’s a linter - Shellcheck - that will catch most gotchas in scripts, there are a lot more resources to learn shell on
by andrewl-hn 4y ago
Shell scripting is not bad these days. There’s a linter - Shellcheck - that will catch most gotchas in scripts, there are a lot more resources to learn shell online, and there are tools like Bats to make your life easier if your shell scripts grow too big.
Writing logic - functions, for loops, or if statements- is still very annoying in Bash. Likewise writing a piece of code that glues calls to external commands is extremely clunky in almost all other languages (except Perl an Ruby), notably Python which is often treated as a Bash replacement.
Finding the right balance can be tricky, but choosing only Shell or only Python is not the right way to go.
- GekkePrutser 4y agoYeah I think PowerShell has a perfect balance there. Of course they were able to do so by taking lessons learned from 30 years and didn't have any legacy baggage. Piping structured objects between apps without having to parse output is amazing. I hope Linux will come up with something similar. Of course PowerShell is open source but I don't trust MS enough to adopt it privately. I do use it at work though which makes sense as we're a MS shop.