summary refs log tree commit diff
path: root/src/funcs/newgrp
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-10-06 18:59:31 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2007-10-06 18:59:31 +0800
commit82a74acd4885849e1e5684002d78e55deb6a6843 (patch)
tree6c1f33a1ad6795b4d7bfa94c8fe07e9e287bc8fa /src/funcs/newgrp
parent[MEMALLOC] Add pushstackmark (diff)
downloaddash-82a74acd4885849e1e5684002d78e55deb6a6843.tar.gz
dash-82a74acd4885849e1e5684002d78e55deb6a6843.zip
[BUILTIN] Treat OPTIND=0 in the same way as OPTIND=1
Previously setting OPTIND to 0 would cause subsequent getopts calls to fail.
This patch makes dash reset the getopts parameters the same way as OPTIND=1.

Both behaviours are allowed by POSIX but other common shells do tolerate this
case.
Diffstat (limited to 'src/funcs/newgrp')
0 files changed, 0 insertions, 0 deletions
itle='2019-02-07 21:22:14 -0500'>2019-02-07Add make syntax to hiJune McEnroe 2019-02-07Add IRC output to hiJune McEnroe 2019-02-07Improve C syntax accuracy and add Format classJune McEnroe 2019-02-07Factor out hi checkJune McEnroe Fix subexpression bounds check and compile pattends. 2019-02-07Add Escape class to hiJune McEnroe 2019-02-07Add Todo class and parent syntax constraintJune McEnroe