3 ms·
Manipulating processes, exit codes and output is idiomatic in shells and that's where they shine. I totally agree with you. In a general purpose programming la
by partycoder 9y ago
Manipulating processes, exit codes and output is idiomatic in shells and that's where they shine. I totally agree with you.
In a general purpose programming language there's a lot of overhead for doing the same things.
For maintainability, there are now linters for shell languages that can help making the job easier.
- yjftsjthsd-h 9y ago> linters for shell languages Obligatory in case anyone hasn't seen it: https://www.shellcheck.net/ https://www.shellcheck.net/ Works as a web app or local tool.
- partycoder 9y agoPlease note that copying and pasting commands from a web browser into a terminal can result in malicious code being executed. A good idea to double check using a text editor. http://thejh.net/misc/website-terminal-copy-paste http://thejh.net/misc/website-terminal-copy-paste
- pbhjpbhj 9y agoSounds like sandboxing of pasted code until confirmation would be a good feature for a new shell ...
- yjftsjthsd-h 9y agoThere are terminals that do this, I believe.
- snag 9y agothanks for this