Re:WSL2 can now mount Linux ext4 disks directly
by nikanj on Tuesday November 09, 2021 @09:36AM
(#29162273)
The entire contents of Merriam-Webster fail to adequately explain how little I care whether or not I can run my scripts on MINIX or AIX.
"The script you wrote last week for Debian no longer runs on Debian, but if you follow this guide, you can run it on an PDP-11!"
Yay..
I also totally didn't notice the Debian thing, but I have moved a couple scripts I use to have `command` instead of which for detecting whether a given executable is available or not (those scripts need to run unmodified on Linux and macOS) and `command` is the POSIX way to do it.
I'd strongly suggest flagging avoidable non-POSIX approaches whenever possible. POSIX still is the standard and, if you play nice, you'll be able to run a script everywhere, from MINIX to AIX to zOS's POSIX environment (an EBCDIC Unix!). So far, shellcheck has been ruthlessly teaching me to write better shell scripts.