2 ms·
I feel like there has got to be a better common denominator if you're willing to stick with just Linux. Yesterday I was trying to track down why a bash script
by inferiorhuman 3y ago
I feel like there has got to be a better common denominator if you're willing to stick with just Linux.
Yesterday I was trying to track down why a bash script that worked on pretty much every platform I'd tried and across a bunch of different bash versions was not working on a new operating system. Turns out the script was relying on "non-standard" behavior in tr(1). Definitely not the first thing you think of when you see bash complaining about undefined variables.
A bit further back I had similar fun with FreeBSD's installer now that they've ripped perl5 out of the base system. The installer is, of course, an unholy mix of C and sh.
- Joker_vD 3y agoWell, there is Perl, which is what actually was used to be for "can we do this in something that is not shell but also portable?" kinds of scripts for quite some time. But then again, it's Perl.