Hacker News new | ask | show | jobs
by jonathaneunice 57 days ago
Back in the day, essentially _every_ version of Unix had its own flags and/or interpretation of flags. Delightful for shops that freely put an HP-UX next to a SunOS, with a little AIX and IRIX over there and a DYNIX in the backroom. You'd think that'd be rare, but it wasn't. "Open standards will make everything compatible and interoperable" had not yet quite been exposed as a deathtrap Big Lie. Universities, multi-nationals amalgamated by M&A, orgs that believed philosophically in mix-and-match... lot of places had to navigate "-r on systems A, C, and M. -R on B, D, and others by default."
2 comments

Well, that's why you had /usr/xpg4/bin, /usr/ucb/bin, .. so you'd have all the variants of all the tools readily available.
POSIX is one of those open standards, and that's why the article exists. There's the POSIX way to do this, and one specific set of tools happens to alias the non-POSIX flag to the standard behavior.
Remember GNU's $POSIX_ME_HARDER? Later restated more softly / less offensively as $POSIXLY_CORRECT.

Efforts to standardize Unix go way back (e.g. /usr/group in 1984). Most people hadn't yet even remotely heard of Unix and we were already needing to smooth over fragmentation. POSIX first ratified in 1988. Unevenly-conforming implementations arrived a year or few later. But that ".1" was only the first, thinnest, most obvious slice of "we should all do this the same way." Overall we've been working to bring Unix and its descendants into alignment for 40+ years. Doesn't feel fully wrangled even now. There's a reason we still might need $POSIXLY_CORRECT.