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
#!/usr/bin/systemctl start bash.service
@mike @futzle @rubenerd *vibrates with outrage*
@mike @futzle @rubenerd Although on the plus side I did just learn about the -S flag for env. Which, uh, is also not POSIX.
@mike @futzle @rubenerd there are faster and less painful ways to commit suicide, sir.