hello!
i know that there is no more gawk feature request like topic. so i'm just voicing my thoughts.
it's will be nice if gawk script may gets full filepath of the every files that was @included
like if PROCINFO[ "include" ] is the predefined subarray containing as the indexes full filepaths of the all files included.
some of my libraries needs to load and process some files during initialization.
the files are logically located at the same location as the file included. this will lead to problems with runing my scripts from non-hardcoded locations.
if such kind include-file list will be provided by gawk the library's initializations may find itself in this list and then just get location of the file required
and it is possible that dynamic extensions also may needs such kind feature.
also:
it's will be very useful and whats more important - more correct if for @include directives located in a file the current directory will be directory from where file was been loaded - not the user's current folder as it's currently in gawk.
many of my include files contains nested subincludes that should loaded exactly from where original include file was get.
also:
it's will be nice if @include directive may support access to environment variables like it's realized in batch files:
@include "%AWKPATH%/arr/arr.inc"
Best Regards
Denis
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 68:00:42 |
Calls: | 6,654 |
Files: | 12,200 |
Messages: | 5,332,028 |