awk: stop on first non-option, closes 9861
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
e440b39416
commit
a1799db4ac
@ -70,7 +70,11 @@
|
||||
#endif
|
||||
|
||||
|
||||
#define OPTSTR_AWK \
|
||||
/* "+": stop on first non-option:
|
||||
* $ awk 'BEGIN { for(i=1; i<ARGC; ++i) { print i ": " ARGV[i] }}' -argz
|
||||
* 1: -argz
|
||||
*/
|
||||
#define OPTSTR_AWK "+" \
|
||||
"F:v:*f:*" \
|
||||
IF_FEATURE_AWK_GNU_EXTENSIONS("e:*") \
|
||||
"W:"
|
||||
|
Loading…
Reference in New Issue
Block a user