GNU awk manual on nextfile
reads:
NOTE: For many years,
nextfile
was a common extension. In September 2012, it was accepted for inclusion into the POSIX standard. See the Austin Group website.
Likewise, mawk manual says:
Nextfile is a gawk extension (also implemented by BWK awk), is not yet part of the POSIX standard (as of October 2012), although it has been accepted for the next revision of the standard.
What confuses me is that there is no mention of nextfile
in the latest POSIX specification, from 2018.
Following the link to the Austin Group, you find that the issue was resolved in 2012 (with even a final accepted text), but only applied in 2020(!).
All in all, does it mean nextfile
is an awk's feature specified by POSIX? Or will it only be so in a future POSIX version?
(For practical purposes, nextfile
is also to be found in BSD awk.)
Two more statements are in the same situation as nextfile
: fflush
and delete
(delete
is already specified, but is to be expanded so as to be able to delete an entire array).