2 ms·
There are lots of better alternatives in almost all cases, just not super weird niche stuff. A lot of things that one would use bash for involve servers, and t
by eternityforest 3y ago
There are lots of better alternatives in almost all cases, just not super weird niche stuff.
A lot of things that one would use bash for involve servers, and there's Ansible for that, no need to use bash directly most of the time. If it were up to me, distros would include Ansible out of the box.
IMHO doing anything at all that's not programmatically repeatable isn't the best practice, so it's not like I want to be logging onto something and writing a quick script in Nano.
Outside of servers.... nobody uses Linux except embedded systems and FOSS enthusiasts. Nobody is paying me to do FOSS work, so I can just pretend that Pythonless systems don't exist.
Python does have some version compatibility issues, but for the most part it's stable, and at least it will crash with a traceback not a cryptic error code because you used some utility that had some nonstandard syntax for the flags.
On embedded, most of what you're doing is probably simple enough that if you do need to use sh you won't absolutely scream.