This commit is contained in:
tg
2009-08-28 21:07:27 +00:00
parent 7cb17b16a0
commit 1fd4515528
3 changed files with 11 additions and 12 deletions

10
misc.c
View File

@ -29,7 +29,7 @@
#include <grp.h>
#endif
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.116 2009/08/28 21:04:16 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.117 2009/08/28 21:07:26 tg Exp $");
#undef USE_CHVT
/* XXX conditions correct? */
@ -445,11 +445,9 @@ parse_args(const char **argv,
qsort(&argv[go.optind], i - go.optind, sizeof(void *),
xstrcmp);
}
if (arrayset) {
set_array(array, arrayset > 0 ? true : false, argv + go.optind);
for (; argv[go.optind]; go.optind++)
;
}
if (arrayset)
go.optind += set_array(array, arrayset > 0 ? true : false,
argv + go.optind);
return (go.optind);
}