3 ms·
Doing so will solve none of the problems outlined in the article. You will still have to write all these patterns in Python to make them idempotent. Also for s
by Spivak 5y ago
Doing so will solve none of the problems outlined in the article. You will still have to write all these patterns in Python to make them idempotent.
Also for systems stuff you’re not gaining much lot when your interface is calling binaries. A script of subprocess.run calls is way more cumbersome and the moment you want to pip install something it’s no longer portable and a huge PITA to distribute.
Bash has lots of footguns because it’s been around a while; run your code through shellcheck if you’re not confident. It’s the lingua franca of Linux userspace.
- geekbird 5y agoPlus Bash is one basic scripting language that every sysadmin worth their salt knows, even more than sh. There will be religious wars until the end of time about Python vs Go vs Ruby vs Rust vs "The New Hotness". Popular languages change; bash, as a shell language, outlives them. In 1995 Perl was the hot language. Bash was there too. Now people can't maintain Perl code, but Bash still runs. Bash doesn't require add-on libraries or modules, it uses system built-ins. It's the lowest common denominator for system scripting. Also, while Mac tries to force people to switch to zsh, and most lemmings just obey, you can still make Macs obey you, and use bash as your login shell.