4 ms·
Awk could be a sleeping giant, because it's required as part of POSIX compliance. With the dominance of Linux though, I don't know if portability is as large of
by timClicks 7y ago
Awk could be a sleeping giant, because it's required as part of POSIX compliance. With the dominance of Linux though, I don't know if portability is as large of a concern as it might have been historically.
- shakna 7y agoI still regularly need to write portable scripts, but it is niche, and not nearly as easy as it should be. Several of our "grunt work" servers run macOS. So you're either left with a seriously outdated set of utilities, or need to write wrappers to first attempt to use gX versions first, and then fallback to standard names. The options I'm trying to use aren't GNU specific, and can be found across the BSDs. But Apple is old, so you can't fully count on POSIX.
- throw0101a 7y ago> But Apple is old, so you can't fully count on POSIX. Strange thing to say since macOS is officially certified UNIX(r) POSIX, and has been for many years: * https://www.opengroup.org/openbrand/register/brand3653.htm https://www.opengroup.org/openbrand/register/brand3653.htm * https://en.wikipedia.org/wiki/POSIX#POSIX-certified https://en.wikipedia.org/wiki/POSIX#POSIX-certified
- shakna 7y agoHowever, if you check the compliance documents, you'll find macOS has a number of waivers. For example [0]. [0] https://www.opengroup.org/csq/repository/noreferences=1&RID=apple%252FCX1%25252F12.html https://www.opengroup.org/csq/repository/noreferences=1&RID=...