Thanks to the impending push of https://www.illumos.org/issues/12482, illumos now has a by-default fully-functioning awk.
Briefly: oawk(1) is the original awk from SysV or earlier. nawk(1) is the "new awk" from subsequent Bell Labs efforts, along with work by Cody Mello. Cody has an excellent talk on awk here: https://www.youtube.com/watch?v=DsFTmGzC-QA Most of the heavy lifting here was done a while ago thanks to Cody Mello (https://www.illumos.org/issues/11552), but this FLAG DAY indicates that from now on, /usr/bin/awk will be the implementation in /usr/bin/nawk. SmartOS had mostly made this switch a while ago, but this commit to illumos-gate makes it official. To elaborate, this switch involves: - The IPS manifests now reflect that awk is the nawk implementation, with nawk hardlinked to awk. - oawk is a standalone binary for backward compatibility if need be. - The awk(1) man page is the pre-this-commit nawk(1) page: it covers awk, nawk, and XPG4 awk (the latter of which is untouched by this commit). nawk(1) is a symbolic link to awk(1) now. - The oawk(1) man page is the pre-this-commit awk(1) page, with references to /usr/bin/awk stripped out. - The AWK test suite in usr/src/test now uses /usr/bin/awk. Starting me down this path was a well-known shell script, dehydrated, breaking on OmniOSce because it assumes awk is modern. I expect that most modern software assumes awk is modern, and not oawk, instead of the other way around. If this commit is a breaking change to anyone's scripts or software, oawk is still available and although it's now documented as obsolete, it will not be removed immediately. If you have any questions, please direct them to the developer's list (I've set Reply-To to help). Thanks, Dan McDonald ------------------------------------------ illumos: illumos-discuss Permalink: https://illumos.topicbox.com/groups/discuss/T64ce92e0a7e33eaf-Mf1d2b4bccef758b821ea56ae Delivery options: https://illumos.topicbox.com/groups/discuss/subscription
