spec test index / oilshell.org
85 passed, 2 ok, 0 known unimplemented, 13 known bugs, 1 failed, 0 skipped
bash | 5 getopts with invalid variable name stdout: status=1 opt= OPTARG=foo OPTIND=3stderr: _tmp/spec-bin/bash: line 2: getopts: `opt-': not a valid identifier |
mksh | 5 getopts with invalid variable name stdout: status=1 opt= OPTARG= OPTIND=1stderr: _tmp/spec-bin/mksh: <stdin>[2]: getopts: opt-: is not an identifier |
mksh | 11 OPTIND after multiple getopts with same spec stdout: 1 - - 4 4stderr: _tmp/spec-bin/mksh: <stdin>[13]: getopts: arguments changed since last call |
osh | 11 OPTIND after multiple getopts with same spec stdout: 1 - - 4 4stderr: |
osh_ALT | 11 OPTIND after multiple getopts with same spec stdout: 1 - - 4 4stderr: |
dash | 12 OPTIND after multiple getopts with different spec stdout: . 2 - - - 5 _ 2stderr: No arg for -f option |
mksh | 12 OPTIND after multiple getopts with different spec stdout: . 2 - - 5 5stderr: _tmp/spec-bin/mksh: <stdin>[14]: getopts: arguments changed since last call |
ash | 12 OPTIND after multiple getopts with different spec stdout: . 2 - - - 5 _ 2stderr: No arg for -f option |
osh | 12 OPTIND after multiple getopts with different spec stdout: . 2 - - 5 5stderr: |
osh_ALT | 12 OPTIND after multiple getopts with different spec stdout: . 2 - - 5 5stderr: |
bash | 13 OPTIND narrowed down stdout: a=1 b= c= d=1 e=Estderr: |
mksh | 13 OPTIND narrowed down stdout: a=1 b= c= d=1 e=Estderr: |
osh | 13 OPTIND narrowed down stdout: a=1 b= c= d=1 e=Estderr: |
osh_ALT | 13 OPTIND narrowed down stdout: a=1 b= c= d=1 e=Estderr: |
bash | 16 Flags can be smooshed together, e.g. -ab stdout: OPTIND=1 opt=a OPTARG= OPTIND=3 opt=b OPTARG=hi OPTIND=5 opt=c OPTARG=hellostderr: |
osh | 16 Flags can be smooshed together, e.g. -ab [osh stdout] Expected 'OPTIND=2 opt=a OPTARG=\nOPTIND=3 opt=b OPTARG=hi\nOPTIND=5 opt=c OPTARG=hello\n', got 'OPTIND=2 opt=? OPTARG=\nOPTIND=2 opt=? OPTARG=\nOPTIND=2 opt=? OPTARG=\n' stdout: OPTIND=2 opt=? OPTARG= OPTIND=2 opt=? OPTARG= OPTIND=2 opt=? OPTARG=stderr: |
osh_ALT | 16 Flags can be smooshed together, e.g. -ab [osh_ALT stdout] Expected 'OPTIND=2 opt=a OPTARG=\nOPTIND=3 opt=b OPTARG=hi\nOPTIND=5 opt=c OPTARG=hello\n', got 'OPTIND=2 opt=? OPTARG=\nOPTIND=2 opt=? OPTARG=\nOPTIND=2 opt=? OPTARG=\n' stdout: OPTIND=2 opt=? OPTARG= OPTIND=2 opt=? OPTARG= OPTIND=2 opt=? OPTARG=stderr: |