spec test index / oilshell.org
165 passed, 26 OK, 33 not implemented, 16 BUG, 0 failed, 0 timeouts, 0 cases skipped
dash | 0 Side Effect in Array Indexing stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: Syntax error: "(" unexpected |
zsh | 0 Side Effect in Array Indexing stdout: 5 b=2stderr: |
dash | 7 Constant with quotes like '1' stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: arithmetic expression: expecting primary: "'1' + 2" |
bash | 7 Constant with quotes like '1' stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: '1' + 2: syntax error: operand expected (error token is "'1' + 2") |
zsh | 7 Constant with quotes like '1' stdout: stderr: zsh: bad math expression: illegal character: ' |
dash | 10 Invalid string to int stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: Illegal number: foo |
bash | 10 Invalid string to int stdout: 5stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: shopt: strict-arith: invalid shell option name |
mksh | 10 Invalid string to int stdout: 5stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found |
zsh | 10 Invalid string to int stdout: 5stderr: zsh: command not found: shopt |
osh | 10 Invalid string to int stdout: 5stderr: echo $((s+5)) ^ [ stdin ]:3: warning: Invalid integer constant 'foo' |
dash | 11 Invalid string to int with strict-arith stdout: foostderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 4: Illegal number: foo |
bash | 11 Invalid string to int with strict-arith stdout: foo 5 should not get herestderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: shopt: strict-arith: invalid shell option name |
mksh | 11 Invalid string to int with strict-arith stdout: foo 5 should not get herestderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: shopt: not found |
zsh | 11 Invalid string to int with strict-arith stdout: foo 5 should not get herestderr: zsh: command not found: shopt |
dash | 14 Preincrement stdout: 4 4stderr: |
dash | 15 Postincrement stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: arithmetic expression: expecting primary: "a++" |
dash | 16 Increment undefined variables stdout: [][]stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: undef1++: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: ++undef2: not found |
dash | 17 Increment and decrement array elements stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: shopt: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: Syntax error: "(" unexpected |
zsh | 17 Increment and decrement array elements stdout: 5 6 7 8 -stderr: zsh: command not found: shopt zsh: a: assignment to invalid subscript range zsh: undef: assignment to invalid subscript range |
dash | 18 Increment undefined variables with nounset stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: undef1++: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: ++undef2: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 4: undef1: parameter not set |
mksh | 18 Increment undefined variables with nounset stdout: [1][1]stderr: |
zsh | 18 Increment undefined variables with nounset stdout: [1][1]stderr: |
dash | 19 Comma operator (borrowed from C) stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 3: arithmetic expression: expecting EOF: "a,(b+1)" |
dash | 23 Logical Ops Short Circuit stdout: 11 11 11 11stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: 1: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: x: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 4: 0: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 4: x: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 6: 0: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 8: 1: not found |
bash | 26 No floating point stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: 1 + 2.3: syntax error: invalid arithmetic operator (error token is ".3") |
mksh | 26 No floating point stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: 1 + 2.3: unexpected '.' |
zsh | 26 No floating point stdout: 3.2999999999999998stderr: |
dash | 27 Array indexing in arith stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: Syntax error: "(" unexpected |
zsh | 27 Array indexing in arith stdout: 7stderr: |
dash | 28 Constants in base 36 stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: arithmetic expression: expecting EOF: "36#a" |
dash | 29 Constants in bases 2 to 64 stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: arithmetic expression: expecting EOF: "64#a" |
mksh | 29 Constants in bases 2 to 64 stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: 64#a: bad number '64#a' |
zsh | 29 Constants in bases 2 to 64 stdout: stderr: zsh: invalid base (must be 2 to 36 inclusive): 64 |
dash | 30 Dynamic base constants stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: arithmetic expression: expecting EOF: " 16#a " |
mksh | 31 Octal constant stdout: 11stderr: |
zsh | 31 Octal constant stdout: 11stderr: |
mksh | 32 Dynamic octal constant stdout: 11stderr: |
zsh | 32 Dynamic octal constant stdout: 11stderr: |
osh | 34 Dynamic var names - result of runtime parse/eval stdout: stderr: echo $(( foo + f$x + 1 )) ^ [ stdin ]:3: fatal: Invalid integer constant 'foo' |
dash | 35 Bizarre recursive name evaluation - result of runtime parse/eval stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 5: Illegal number: foo |
osh | 35 Bizarre recursive name evaluation - result of runtime parse/eval stdout: stderr: echo $((foo+1)) $((bar+1)) $((spam+1)) $((eggs+1)) ^~~ [ stdin ]:5: fatal: Invalid integer constant 'foo' |
dash | 36 nounset with arithmetic stdout: should not get here: x=5stderr: |
mksh | 36 nounset with arithmetic stdout: should not get here: x=5stderr: |
zsh | 36 nounset with arithmetic stdout: should not get here: x=5stderr: |
dash | 37 Integer Overflow stdout: -1996229794797103359stderr: |
bash | 37 Integer Overflow stdout: -1996229794797103359stderr: |
mksh | 37 Integer Overflow stdout: -15640831stderr: |
zsh | 37 Integer Overflow stdout: -1996229794797103359stderr: |
dash | 38 Invalid LValue stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: Syntax error: word unexpected (expecting ")") |
bash | 38 Invalid LValue stdout: 9stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 2: ((: (a + 2) = 3 : attempted assignment to non-variable (error token is "= 3 ") |
mksh | 38 Invalid LValue stdout: 9stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[2]: (a + 2) = 3 : = requires lvalue |
zsh | 38 Invalid LValue stdout: 9stderr: zsh: bad math expression: lvalue required |
dash | 39 Invalid LValue that looks like array stdout: status=127stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: 1[2]: not found |
bash | 39 Invalid LValue that looks like array stdout: status=1stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: ((: 1[2] = 3 : syntax error: invalid arithmetic operator (error token is "[2] = 3 ") |
mksh | 39 Invalid LValue that looks like array stdout: status=2stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: 1[2] = 3 : unexpected '[' |
zsh | 39 Invalid LValue that looks like array stdout: status=2stderr: zsh: bad base syntax |
dash | 40 Invalid LValue: two sets of brackets stdout: status=127stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: a[1][2]: not found |
bash | 40 Invalid LValue: two sets of brackets stdout: status=1stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 1: ((: a[1][2] = 3 : syntax error: invalid arithmetic operator (error token is "[2] = 3 ") |
mksh | 40 Invalid LValue: two sets of brackets stdout: status=2stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: a[1][2] = 3 : unexpected '[' |
zsh | 40 Invalid LValue: two sets of brackets stdout: status=2stderr: zsh: bad base syntax |
dash | 42 Exponentiation with ** stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: arithmetic expression: expecting primary: " 3 ** 0 " |
mksh | 42 Exponentiation with ** stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: 3 ** 0 : unexpected '*' |
dash | 43 Exponentiation operator has buggy precedence stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: arithmetic expression: expecting primary: " -3 ** 2 " |
mksh | 43 Exponentiation operator has buggy precedence stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: -3 ** 2 : unexpected '*' |
dash | 44 Negative exponent stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: arithmetic expression: expecting primary: " 2**-1 * 5 " |
zsh | 44 Negative exponent stdout: 2.5stderr: |
dash | 45 Comment not allowed in the middle of multiline arithmetic stdout: 6stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 6: arithmetic expression: expecting EOF: " 1 + 2 # not a comment " |
bash | 45 Comment not allowed in the middle of multiline arithmetic stdout: 6 []stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 8: 1 + 2 # not a comment : syntax error: invalid arithmetic operator (error token is "# not a comment ") /home/andy/git/oilshell/oil/_tmp/spec-bin/bash: line 10: ((: a = 3 + 4 # comment : syntax error: invalid arithmetic operator (error token is "# comment ") |
osh | 45 Comment not allowed in the middle of multiline arithmetic stdout: 6stderr: 1 + 2 # not a comment ^ [ stdin ]:7: Expected first ) to end arith sub, got ' ' |
dash | 46 Can't add integer to indexed array stdout: stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: Syntax error: "(" unexpected |
bash | 46 Can't add integer to indexed array stdout: 6stderr: |
dash | 47 Can't add integer to associative array stdout: 5stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 1: typeset: not found /home/andy/git/oilshell/oil/_tmp/spec-bin/dash: 2: assoc[0]=42: not found |
bash | 47 Can't add integer to associative array stdout: 47stderr: |
mksh | 47 Can't add integer to associative array stdout: 47stderr: /home/andy/git/oilshell/oil/_tmp/spec-bin/mksh: <stdin>[1]: typeset: -A: unknown option |
zsh | 47 Can't add integer to associative array stdout: 47stderr: |