4 ms·
Nonsense. Bash is for the OS not for you too? Python's standard library covers most scripting use cases, even HTTP networkingand it's stable you can write scri
by rini17 2y ago
Nonsense. Bash is for the OS not for you too?
Python's standard library covers most scripting use cases, even HTTP networkingand it's stable you can write script and forget. No need to "control" stuff. For example I am using minimal python script + cron for updating letsencrypt certificates in misc linux distros. Everywhere it's system python out of the box without any additional dependencies or virtualenvs.
- xarope 2y agoThat's why I learned REXX in ye-olde days, because it came installed as default on IBM systems (and not Perl, which was my de-facto prior to). Then python. Nowadays Go(lang). Still trying to decide if it's worth going to Rust for script'ish type work, I have a feeling it's not quite the right choice.
- p_l 2y agoPython versioning is BS enough and with enough systems problematic enough that for scripts that have to assume widest range? I torture them with POSIX sh.
- flohofwoe 2y agoAt least on macOS, Apple strongly discourages depending on the builtin scripting languages, and AFAIK python is no longer preinstalled (instead installing Xcode for the first time will slip a python3.9.x and pip3 into your /usr/bin). Of course you can depend on zsh/bash, but then the Apple UNIX tools are BSD flavoured, not GNU flavoured like on Linux, so Linux shell scripts will also quite often not work out of the box on macOS.
- rini17 2y agoYes, Apple seems to strongly discourage any kind of scripting which they can not squeeze more money from. But that's not really the same problem.
- deleted 2y ago[deleted]