From 2b08d0ed6747a4acf44b73068bfafc54ca1d0acf Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 28 May 2015 18:32:39 +0100 Subject: 35318: POSIX_BUILTINS behaviour for getopts. It needs to keep OPTIND, as well as the index within the string pointed to by OPTIND, global in this case. --- Src/builtin.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Src/builtin.c') diff --git a/Src/builtin.c b/Src/builtin.c index a9afb4540..18c22f29e 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -4713,6 +4713,10 @@ bin_shift(char *name, char **argv, Options ops, UNUSED(int func)) return ret; } +/* + * Position of getopts option within OPTIND argument with multiple options. + */ + /**/ int optcind; -- cgit 1.4.1