ash: unset OPTARG if getopts exits 1, support OPTERR=0 behavior
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 15 Aug 2017 13:44:41 +0000 (15:44 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 15 Aug 2017 13:44:41 +0000 (15:44 +0200)
commit9832bbaba966f0e52e183f10cd93fad7f8f643fe
treee79e43916984e0d1a575c30ae2dd9a3893331316
parent4476c703015d026dfd8057a28010c33943aa2a9c
ash: unset OPTARG if getopts exits 1, support OPTERR=0 behavior

function                                             old     new   delta
getoptscmd                                           522     547     +25

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c