diff options
author | Denys Vlasenko | 2016-10-26 02:03:37 +0200 |
---|---|---|
committer | Denys Vlasenko | 2016-10-26 02:03:37 +0200 |
commit | a513bf3c3ce0756c991b21c0ca271e24fedcdb51 (patch) | |
tree | 3e2e210badd57f1e9489ff465b79944b1c1904a0 /TODO | |
parent | 88e15703acdbfb182440cf35fdb8972fc4931dd2 (diff) | |
download | busybox-a513bf3c3ce0756c991b21c0ca271e24fedcdb51.zip busybox-a513bf3c3ce0756c991b21c0ca271e24fedcdb51.tar.gz |
ash: [BUILTIN] Treat OPTIND=0 in the same way as OPTIND=1
Upstream commit:
Date: Sat, 6 Oct 2007 18:59:31 +0800
[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.
function old new delta
getoptsreset 24 30 +6
getoptscmd 632 614 -18
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions