3 ms·
Bash is native. You won't find python pre-installed on all distros, like alpine
by udev4096 2y ago
Bash is native. You won't find python pre-installed on all distros, like alpine
- yawpitch 2y agoTrue, though there’s a whole world of people who will yell at you for using Bash-isms rather than pure posix precisely because Bash (at least up to date versions) isn’t everywhere either.
- hi_hi 2y agoBash may be native, but alot of the programs you'll want to call may not be, or will differ between platforms in subtle ways. Although this won't be a concern for small/trivial scripts, but if we're talking about python as an alternative, my point probably still applies.
- a-french-anon 2y agoThis. People using bash extensions and util-linux as if they're standard are my bane. If you can't do it in POSIX (sh and utilities) and don't want to do an extensive investigation of portability for what you need, pony up for Python/Tcl/Perl (all in MacOS base, by the way).
- lloeki 2y ago> You won't find python pre-installed on all distros, like alpine The same can be said of bash, especially since you mention Alpine (also FreeBSD) Perl, though... ;) (if Perl is not there it gets pulled in very quickly as a dependency of something, e.g typically you pull git, you get perl)