5 ms·
> Typescript to bash Literally the worst of both worlds.
by gdevenyi 2mo ago
> Typescript to bash
Literally the worst of both worlds.
- classified 2mo agoBash is great for orchestrating other Unix tools into an automated workflow. Only when that workflow requires stuff that Bash doesn't have is it time to break out Python. Integrate Shellcheck into your editor, and you get automated help for writing more reliable Bash.
- lokar 2mo agoGreat compared to what? It was great in the ‘90s, not today.
- wpm 2mo agoShellCheck is like a spaz hall monitor, filling my editor with useless warnings about what it believes are best practices. I thank my stars I mostly write shell scripts in zsh which it doesn't support.
- classified 2mo agoIt does have some "false positives" but by and large I find it helpful. I never saw a script misbehave where I followed Shellcheck's advice.
- supriyo-biswas 2mo agoShellcheck has good heuristics, like making mistakes with for and subshell variables. I’ve never found its heuristics to be off-base, and when it can’t genuinely tell because of some context that is only known to you, you can opt out via # shellcheck disable=SCxxxx
- artemonster 2mo agobash bashing i can understand. whats wrong with ts tho?