aboutsummaryrefslogtreecommitdiffstats
path: root/field.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-09-16 21:42:35 +0300
committerArnold D. Robbins <arnold@skeeve.com>2018-09-16 21:42:35 +0300
commitc515c7d93ca941383e14de219dca592743ec0495 (patch)
treeccf526453915f8c8eaec40cc4a15616ed213a0de /field.c
parent50d936950ecfa737d1c5b8ac2ed6584493edabe6 (diff)
parent4978d581e4c1a93b5cdb962b47c2ed827655b070 (diff)
downloadegawk-c515c7d93ca941383e14de219dca592743ec0495.tar.gz
egawk-c515c7d93ca941383e14de219dca592743ec0495.tar.bz2
egawk-c515c7d93ca941383e14de219dca592743ec0495.zip
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'field.c')
-rw-r--r--field.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/field.c b/field.c
index 52963249..1c209c26 100644
--- a/field.c
+++ b/field.c
@@ -837,6 +837,13 @@ get_field(long requested, Func_ptr *assign)
* then the whole line must be rebuilt
*/
if (requested == 0) {
+ static bool warned = false;
+ extern int currule;
+
+ if (do_lint && currule == END && ! warned) {
+ warned = true;
+ lintwarn(_("accessing $0 from an END rule may not be portable"));
+ }
if (! field0_valid) {
/* first, parse remainder of input record */
if (NF == -1) {