spec test index / oilshell.org
98 passed, 12 OK, 0 not implemented, 10 BUG, 0 failed, 0 timeouts, 0 cases skipped
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: 1 - - 4 4stderr: mksh: <stdin>[15]: getopts: arguments changed since last call |
osh | 12 OPTIND after multiple getopts with same spec stdout: 1 - - 4 4stderr: |
dash | 13 OPTIND after multiple getopts with different spec stdout: . 2 - - - 5 _ 2stderr: No arg for -f option |
mksh | 13 OPTIND after multiple getopts with different spec stdout: . 2 - - 5 5stderr: mksh: <stdin>[16]: getopts: arguments changed since last call |
ash | 13 OPTIND after multiple getopts with different spec stdout: . 2 - - - 5 _ 2stderr: No arg for -f option |
osh | 13 OPTIND after multiple getopts with different spec stdout: . 2 - - 5 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 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 |