3 ms·
I think this might help others, but ShellCheck[0] is a good place to start to help eliminate poor shell scripting. And I would make an argument though that eve
by natecavanaugh 9y ago
I think this might help others, but ShellCheck[0] is a good place to start to help eliminate poor shell scripting.
And I would make an argument though that even large shell scripts in bash have their place.
I often write scripts in either Node or Python, but only when I need things bash is bad about (any sort of proper data structure beyond strings or arrays).
But there are just so many things bash makes insanely easy, especially with operating on files and directories.
And functions that are used as completions or need access to aliases or functions in the current process are also better in bash.
I wish there were a scripting language like bash, but enhanced with at least some hash maps and proper array manipulation, and maybe some formal IPC to allow scripts to request info from the parent process.
- mkl 9y ago[0] https://www.shellcheck.net/ https://www.shellcheck.net/
- natecavanaugh 9y agoWhoops! Thanks for that