108 passed, 12 OK, 0 not implemented, 7 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
| bash | 5 getopts with invalid variable name stdout: status=1 opt= OPTARG=foo OPTIND=3stderr: bash: line 2: getopts: `opt-': not a valid identifier |
| mksh | 5 getopts with invalid variable name stdout: status=1 opt= OPTARG= OPTIND=1stderr: mksh: <stdin>[2]: getopts: opt-: is not an identifier |
| mksh | 12 OPTIND after multiple getopts with same spec stdout: OPTIND=1 - - OPTIND=4 OPTIND=4stderr: mksh: <stdin>[15]: getopts: arguments changed since last call |
| osh | 12 OPTIND after multiple getopts with same spec [osh stdout] Expected 'OPTIND=1\n-\n-\nOPTIND=4\nOPTIND=1\n' Got 'OPTIND=1\n-\n-\nOPTIND=4\nOPTIND=4\n' stdout: OPTIND=1 - - OPTIND=4 OPTIND=4stderr: |
| dash | 13 OPTIND after multiple getopts with different spec stdout: . OPTIND=2 - - - OPTIND=5 _ OPTIND=2stderr: No arg for -f option |
| mksh | 13 OPTIND after multiple getopts with different spec stdout: . OPTIND=2 - - OPTIND=5 OPTIND=5stderr: mksh: <stdin>[16]: getopts: arguments changed since last call |
| ash | 13 OPTIND after multiple getopts with different spec stdout: . OPTIND=2 - - - OPTIND=5 _ OPTIND=2stderr: No arg for -f option |
| osh | 13 OPTIND after multiple getopts with different spec [osh stdout] Expected '.\nOPTIND=2\n-\n-\nOPTIND=5\nOPTIND=2\n' Got '.\nOPTIND=2\n-\n-\nOPTIND=5\nOPTIND=5\n' stdout: . OPTIND=2 - - OPTIND=5 OPTIND=5stderr: |
| bash | 14 OPTIND narrowed down stdout: a=1 b= c= d=1 e=Estderr: |
| mksh | 14 OPTIND narrowed down stdout: a=1 b= c= d=1 e=Estderr: |
| osh | 14 OPTIND narrowed down [osh stdout] Expected 'a=1 b= c=1 d=1 e=E\n' Got 'a=1 b= c= d=1 e=E\n' stdout: a=1 b= c= d=1 e=Estderr: |
| dash | 17 two flags: -ab stdout: OPTIND=2 opt=a OPTARG= OPTIND=2 opt=b OPTARG=stderr: |
| mksh | 17 two flags: -ab stdout: OPTIND=2 opt=a OPTARG= OPTIND=2 opt=b OPTARG=stderr: |
| ash | 17 two flags: -ab stdout: OPTIND=2 opt=a OPTARG= OPTIND=2 opt=b OPTARG=stderr: |
| dash | 18 flag and arg: -c10 stdout: OPTIND=2 opt=c OPTARG=10 OPTIND=2 opt=? OPTARG=10stderr: |
| dash | 19 More Smooshing 1 stdout: OPTIND=2 opt=a OPTARG= OPTIND=3 opt=b OPTARG=hi OPTIND=5 opt=c OPTARG=hellostderr: |
| mksh | 19 More Smooshing 1 stdout: OPTIND=2 opt=a OPTARG= OPTIND=3 opt=b OPTARG=hi OPTIND=5 opt=c OPTARG=hellostderr: |
| ash | 19 More Smooshing 1 stdout: OPTIND=2 opt=a OPTARG= OPTIND=3 opt=b OPTARG=hi OPTIND=5 opt=c OPTARG=hellostderr: |
| dash | 20 More Smooshing 2 stdout: OPTIND=2 opt=a OPTARG= OPTIND=2 opt=b OPTARG= OPTIND=2 opt=c OPTARG=10stderr: |
| mksh | 20 More Smooshing 2 stdout: OPTIND=2 opt=a OPTARG= OPTIND=2 opt=b OPTARG= OPTIND=2 opt=c OPTARG=10stderr: |
| ash | 20 More Smooshing 2 stdout: OPTIND=2 opt=a OPTARG= OPTIND=2 opt=b OPTARG= OPTIND=2 opt=c OPTARG=10stderr: |
| dash | 21 OPTIND should be >= 1 (regression) stdout: stderr: dash: 1: Illegal number: -1 |