diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-10-06 18:59:31 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2007-10-06 18:59:31 +0800 |
commit | 82a74acd4885849e1e5684002d78e55deb6a6843 (patch) | |
tree | 6c1f33a1ad6795b4d7bfa94c8fe07e9e287bc8fa /src/myhistedit.h | |
parent | [MEMALLOC] Add pushstackmark (diff) | |
download | dash-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 '')
0 files changed, 0 insertions, 0 deletions