Writing scripts for the BSDs makes one keenly aware of cross-compatibility. I'll aim for POSIX(ish), then when behaviour deviates (cough GNU), I'll write a basic case statement to handle other platforms.

It... really isn't hard? But most scripts thesedays just assume Linux.

@rubenerd No one knows how to write POSIX shell scripts any more.

@futzle @rubenerd A small but curmudgeonly old bunch of us still strive for POSIX scripts.

@ed1conf @futzle @rubenerd My web backends are written in POSIX /bin/sh and C89.