Annoyingly, BSD before 4.4 didn't accept -n # (according to the man page archive at freebsd.org), so applications can't work with both old BSD and new Posix. I suppose this is another thing one could use autoconf to detect... Maybe just setting _POSIX2_VERSION to 199209 before calling any utilities would be enough. Cheers.