From a1799db4ac660a15285e1ac2464b5f622746d787 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 16 Aug 2017 19:07:53 +0200 Subject: awk: stop on first non-option, closes 9861 Signed-off-by: Denys Vlasenko --- editors/awk.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'editors') diff --git a/editors/awk.c b/editors/awk.c index 372a255..2005329 100644 --- a/editors/awk.c +++ b/editors/awk.c @@ -70,7 +70,11 @@ #endif -#define OPTSTR_AWK \ +/* "+": stop on first non-option: + * $ awk 'BEGIN { for(i=1; i