spec test index / oilshell.org
136 passed, 7 OK, 8 not implemented, 2 BUG, 3 failed, 0 timeouts, 0 cases skipped 3 failed under osh
mksh | 4 [[ regex matching stdout: stderr: mksh: <stdin>[2]: syntax error: '=~' unexpected operator/operand |
mksh | 5 [[ regex syntax error stdout: stderr: mksh: <stdin>[1]: syntax error: '=~' unexpected operator/operand |
mksh | 14 Octal literals with -eq stdout: falsestderr: mksh: <stdin>[1]: shopt: not found |
mksh | 15 Hex literals with -eq stdout: falsestderr: mksh: <stdin>[1]: shopt: not found mksh: <stdin>[4]: 0x0f: bad number '0x0f' |
mksh | 20 [[ with op variable (compare with test-builtin.test.sh) stdout: stderr: mksh: <stdin>[2]: syntax error: '$op' unexpected operator/operand |
mksh | 26 Argument that looks like a real operator stdout: stderr: mksh: <stdin>[1]: syntax error: '-f' missing argument |
bash | 29 (( array1 == array2 )) doesn't work stdout: status=1 status=1 status=1stderr: bash-4.4: line 6: ((: 1 3: syntax error in expression (error token is "3") bash-4.4: line 9: ((: 1 3: syntax error in expression (error token is "3") bash-4.4: line 12: ((: 1 3: syntax error in expression (error token is "3") |
mksh | 34 [[ '(' foo ]] is syntax error stdout: stderr: mksh: <stdin>[1]: syntax error: 'foo' unexpected operator/operand |
mksh | 36 [[ -z ]] is syntax error stdout: stderr: mksh: <stdin>[2]: syntax error: 'echo' unexpected operator/operand |
mksh | 38 [[ -z '>' a ]] is syntax error stdout: stderr: mksh: <stdin>[1]: syntax error: '--' unexpected operator/operand |
mksh | 40 [[ ]] is syntax error stdout: stderr: mksh: <stdin>[1]: syntax error: 'newline' unexpected operator/operand |
mksh | 41 [[ && ]] is syntax error stdout: stderr: mksh: <stdin>[1]: syntax error: '&&' expression expected |
mksh | 42 [[ a 3< b ]] doesn't work (bug regression) stdout: status=0 status=1stderr: |
mksh | 45 tilde expansion with =~ (confusing) stdout: stderr: |
mksh | 49 [[ -v array[i] ]] stdout: stderr: mksh: <stdin>[4]: syntax error: 'array[0]' unexpected operator/operand |
osh | 49 [[ -v array[i] ]] [osh stdout] Expected 'zero=0\none=0\ntwo=1\n', got 'zero=1\none=1\ntwo=1\n' stdout: zero=1 one=1 two=1stderr: |
mksh | 50 [[ -v array[expr]] ]] does arith expression evaluation stdout: stderr: mksh: <stdin>[6]: syntax error: 'array[zero+0]' unexpected operator/operand |
osh | 50 [[ -v array[expr]] ]] does arith expression evaluation [osh stdout] Expected 'zero=0\none=0\ntwo=1\n---\nzero=0\none=0\ntwo=1\n---\nzero=0\none=0\ntwo=1\n' Got 'zero=1\none=1\ntwo=1\n---\nzero=1\none=1\ntwo=1\n---\nzero=1\none=1\ntwo=1\n' stdout: zero=1 one=1 two=1 --- zero=1 one=1 two=1 --- zero=1 one=1 two=1stderr: |
mksh | 51 [[ -v assoc[key] ]] stdout: stderr: mksh: <stdin>[1]: typeset: -A: unknown option mksh: <stdin>[4]: syntax error: 'assoc[empty]' unexpected operator/operand |
osh | 51 [[ -v assoc[key] ]] [osh stdout] Expected 'empty=0\nk=0\nnonexistent=1\n---\nempty=0\nk=0\nnonexistent=1\n---\nempty=0\nk=0\nnonexistent=1\n' Got 'empty=1\nk=1\nnonexistent=1\n---\nempty=1\nk=1\nnonexistent=1\n---\nempty=1\nk=1\nnonexistent=1\n' stdout: empty=1 k=1 nonexistent=1 --- empty=1 k=1 nonexistent=1 --- empty=1 k=1 nonexistent=1stderr: |