From: Denys Vlasenko Date: Wed, 16 Aug 2017 17:07:53 +0000 (+0200) Subject: awk: stop on first non-option, closes 9861 X-Git-Tag: 1_28_0~117 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a1799db4ac660a15285e1ac2464b5f622746d787;p=oweals%2Fbusybox.git awk: stop on first non-option, closes 9861 Signed-off-by: Denys Vlasenko --- diff --git a/editors/awk.c b/editors/awk.c index 372a255bd..2005329ad 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