I want to use some gawk
extensions to the awk
standard, for example mktime()
. At the same time, I want to use the option --lint=fatal
because I'd rather let the process fail than have it produce potentially incorrect data silently. However, there is something I do not understand:
$ gawk --lint=fatal 'BEGIN { foo = mktime("2013 01 01 12 00 00"); }'
gawk: cmd. line:1: fatal: `mktime' is a gawk extension
I did not specify the options --posix
or --traditional
, so the gawk
extensions should be present. Once I reduce the strictness (--lint=warning
), the script works. In order to use the strict checks, I would have to tell gawk
something like I know that I'm using your extended function set and that I'm no longer compatible with the original awk
specification, and I'm fine with that. How can I do this?