aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2022-02-22 20:32:05 +0200
committerArnold D. Robbins <arnold@skeeve.com>2022-02-22 20:32:05 +0200
commitd330a2bdc9d6892dc55ce8f5d299196f32ab1003 (patch)
treef5a95b6ab6d34679192183bad8fee26ddf2ca994 /main.c
parentf8f77e08c471d62bb462db5498f1980c564cdc78 (diff)
downloadegawk-d330a2bdc9d6892dc55ce8f5d299196f32ab1003.tar.gz
egawk-d330a2bdc9d6892dc55ce8f5d299196f32ab1003.tar.bz2
egawk-d330a2bdc9d6892dc55ce8f5d299196f32ab1003.zip
Enable interval expressions for --traditional. Update docs.
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/main.c b/main.c
index c88c23a6..7d14c8bf 100644
--- a/main.c
+++ b/main.c
@@ -368,8 +368,12 @@ main(int argc, char **argv)
}
}
- if (do_lint && os_is_setuid())
- lintwarn(_("running %s setuid root may be a security problem"), myname);
+ if (do_lint) {
+ if (os_is_setuid())
+ lintwarn(_("running %s setuid root may be a security problem"), myname);
+ if (do_intervals)
+ lintwarn(_("The -r/--re-interval options no longer have any effect"));
+ }
if (do_debug) /* Need to register the debugger pre-exec hook before any other */
init_debug();
@@ -1688,6 +1692,8 @@ parse_args(int argc, char **argv)
break;
case 'r':
+ // This no longer has any effect. It remains for the
+ // lint check in main().
do_flags |= DO_INTERVALS;
break;