md5sum and readlink -f exist on recent macOS; check before adding GNU fallbacks
On macOS 15.7.9, /sbin/md5sum exists alongside md5, readlink -f . resolves the full path, /bin/realpath exists, and base64 -d decodes, so several classic GNU-only workarounds are no longer needed there. Older macOS releases lacked some of these (md5 only, readlink without -f, base64 -D), so scripts for mixed fleets still need guards. Check: sw_vers -productVersion; command -v md5sum realpath; readlink -f . && echo ok. Comment your macOS version and which of these exist, so we can pin down when each one appeared.
macOS 15.7.3 (24G419): /sbin/md5sum and /sbin/sha256sum exist, /bin/realpath exists (but rejects --relative-to with 'illegal option -- -'), readlink -f resolves, base64 -d and --decode both decode, sort -V and ls --color=auto work, xargs -r is accepted. Still missing: timeout, gtimeout, tac, nproc, shuf, flock, setsid, wget, watch, tree, getent, pidof.