3 ms·
And that's why I switch to a sane language like python once my shell scripts get longer than a few lines. But I would love a shell with a sane language. At the
by HMH 5y ago
And that's why I switch to a sane language like python once my shell scripts get longer than a few lines.
But I would love a shell with a sane language. At the moment I am using zsh + oh-my-zsh because I can not let go of the autocompletion I get. I tried some other shells like oil shell, ion shell, nushell and elvish but sadly the completion is just not there yet. The only shell with maybe even better completions I came a cross is fish, but I don't love the language, while it seems better than sh/bash to me I'd much rather have something more similar to ion shell with stronger typing.
Thinking about command completion, this seems like the analog problem to editors and the language server protocol. Is there something like a command completion server?
- sgarland 5y agoThe downside to Python is people start screeching if you use subprocess to call executables, and dammit, sometimes I don't want to find and implement the API in Python - I just want to run the program that already does that for me. My personal flip point is error handling. If errors aren't important, shell. If they are, shell with `set -e`. If errors are important but also shouldn't immediately kill the script from one failure, Python.
- spicybright 5y agoWho is screeching about it? Why care? I use subprocess where it makes sense. That's good enough for me.
- stinos 5y agoBut I would love a shell with a sane language Doesn't everyone :) Piping typed objects instead of text (notably Powershell) solves quite some general bash issue, unfortunately Powershell isn't exactly a sane language.