3 ms·
> portably in shell scripts (spoiler: it's hard) At what point do you give up and, if you must have portability, bootstrap a saner environment? Are there many
by pmahoney 12y ago
> portably in shell scripts (spoiler: it's hard)
At what point do you give up and, if you must have portability, bootstrap a saner environment?
Are there many options in this area? Assume perl is available? Use autoconf-like shell script compiler? Starting with Lua (which I hope/assume can build anywhere, though I know it's missing lots of functionality out of the box)?
- AceJohnny2 12y agoI'm lucky not to have to worry about this, but I figured that having Perl is a safe assumption for desktop and server Unix systems. Not embedded devices, but I guess those are different enough that you're probably not targetting them for portable scripts. Oh no, have I contradicted myself? :)