Tiny Core Linux
Off-Topic => Off-Topic - The Funnies => Topic started by: mocore on March 31, 2026, 06:50:55 PM
-
https://git.sr.ht/~q3cpma/scripts/
See this portability matrix for details:
POSIX 2024 GNU busybox toybox MacOS FreeBSD OpenBSD NetBSD Illumos Solaris 10 Solaris 11 AIX
realpath Y Y Y Y Y* Y Y Y N N Y N
xargs -0 Y Y Y Y Y Y Y Y Y N Y N
sed -E Y Y Y Y Y Y Y Y Y N N N
So unless specified otherwise in individual scripts, this collection should work out-of-the-box on Linux, all BSDs and modern MacOS (*: at least Ventura/13 for realpath).
As an addendum, the lesson to be taken from all of this is that POSIX sh scripting is powerful but insanely brain damaged if you want to stay portable, and just a bit less obscene if you choose to tie yourself to a more "complete" implementation like ksh/zsh/bash (want set -o nullglob?) and a specific platform (to get util-linux or BSD base).
For your sanity, please use something like Tcl or a Scheme.
now they tell me !
:p