On Saturday, October 7, 2017 at 9:38:36 AM UTC-4, Kenny McCormack wrote:
> In the documentation, we find this sentence:
>
> * As mentioned in AWKPATH Variable, the current directory is always searched
> * first for source files, before searching in AWKPATH; this also applies to
> * files named with @include.
Thanks for catching this. Please note that this seems to be an obsolete comment in the "Include Files" section of the documentation. It links to the main documentation for the AWKPATH variable, which says:
NOTE: To include the current directory in the path, either place
`.' as an entry in the path or write a null entry in the path.
Different past versions of `gawk' would also look explicitly in
the current directory, either before or after the path search. As
of version 4.1.2, this no longer happens; if you wish to look in
the current directory, you must include `.' either as a separate
entry or as a null entry in the search path.
So it appears that there was a failure to update this issue throughout the documentation.
Thanks,
Andy