144 passed, 19 ok, 28 known unimplemented, 11 known bugs, 3 failed, 0 skipped
dash | 0 Side Effect in Array Indexing stdout: stderr: /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: /bin/dash: 1: arithmetic expression: expecting primary: "'1' + 2" |
bash | 7 Constant with quotes like '1' stdout: stderr: /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: /bin/dash: 2: Illegal number: foo |
bash | 10 Invalid string to int stdout: 5stderr: |
mksh | 10 Invalid string to int stdout: 5stderr: |
zsh | 10 Invalid string to int stdout: 5stderr: |
osh | 10 Invalid string to int stdout: 5stderr: osh warning: Invalid integer constant 'foo' |
dash | 11 Invalid string to int with strict-arith stdout: stderr: /bin/dash: 1: set: Illegal option -o strict-arith |
bash | 11 Invalid string to int with strict-arith stdout: foo 5stderr: /bin/bash: line 1: set: strict-arith: invalid option name |
mksh | 11 Invalid string to int with strict-arith stdout: stderr: /bin/mksh: <stdin>[1]: set: strict-arith: bad option |
zsh | 11 Invalid string to int with strict-arith stdout: stderr: set: no such option: strict-arith |
dash | 14 Preincrement stdout: 4 4stderr: |
dash | 15 Postincrement stdout: stderr: /bin/dash: 2: arithmetic expression: expecting primary: "a++" |
dash | 16 Increment undefined variables stdout: [][]stderr: /bin/dash: 1: undef1++: not found /bin/dash: 2: ++undef2: not found |
dash | 17 Increment and decrement array stdout: stderr: /bin/dash: 1: Syntax error: "(" unexpected |
zsh | 17 Increment and decrement array stdout: 5 6 7 8 -stderr: zsh: a: assignment to invalid subscript range zsh: undef: assignment to invalid subscript range |
osh | 17 Increment and decrement array [osh stdout] Expected '6 7 6 7 - 1 1 -1 -1\n', got '' [osh status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "bin/osh", line 438, in <module> main(sys.argv) File "bin/osh", line 425, in main sys.exit(OilMain(argv)) File "bin/osh", line 408, in OilMain status = OshMain(main_argv) File "bin/osh", line 367, in OshMain status = ex.Execute(node) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 849, in Execute status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 833, in _Execute status = self._Dispatch(node, fork_external) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 631, in _Dispatch status = self._ExecuteList(node.children) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 842, in _ExecuteList status = self._Execute(child) # last status wins File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 833, in _Execute status = self._Dispatch(node, fork_external) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 591, in _Dispatch i = self.arith_ev.Eval(node.child) File "/home/andy/git/oil/bin/../core/expr_eval.py", line 151, in Eval return self._Eval(node) File "/home/andy/git/oil/bin/../core/expr_eval.py", line 343, in _Eval lhs = self._Eval(node.left) File "/home/andy/git/oil/bin/../core/expr_eval.py", line 343, in _Eval lhs = self._Eval(node.left) File "/home/andy/git/oil/bin/../core/expr_eval.py", line 343, in _Eval lhs = self._Eval(node.left) File "/home/andy/git/oil/bin/../core/expr_eval.py", line 262, in _Eval new_int = old_int + 1 TypeError: cannot concatenate 'str' and 'int' objects |
dash | 18 Increment undefined variables with nounset stdout: stderr: /bin/dash: 2: undef1++: not found /bin/dash: 3: ++undef2: not found /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: /bin/dash: 3: arithmetic expression: expecting EOF: "a,(b+1)" |
dash | 23 Logical Ops Short Circuit stdout: 11 11 11 11stderr: /bin/dash: 2: 1: not found /bin/dash: 2: x: not found /bin/dash: 4: 0: not found /bin/dash: 4: x: not found /bin/dash: 6: 0: not found /bin/dash: 8: 1: not found |
bash | 26 No floating point stdout: stderr: /bin/bash: line 1: 1 + 2.3: syntax error: invalid arithmetic operator (error token is ".3") |
mksh | 26 No floating point stdout: stderr: /bin/mksh: <stdin>[1]: 1 + 2.3: unexpected '.' |
zsh | 26 No floating point stdout: 3.2999999999999998stderr: |
dash | 27 Array indexing in arith stdout: stderr: /bin/dash: 1: Syntax error: "(" unexpected |
zsh | 27 Array indexing in arith stdout: 7stderr: |
dash | 28 Constants in base 36 stdout: stderr: /bin/dash: 1: arithmetic expression: expecting EOF: "36#a" |
dash | 29 Constants in bases 2 to 64 stdout: stderr: /bin/dash: 1: arithmetic expression: expecting EOF: "64#a" |
mksh | 29 Constants in bases 2 to 64 stdout: stderr: /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: /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 [osh stdout] Expected '11\n', got '6\n' stdout: 6stderr: osh warning: Invalid integer constant 'foo' |
dash | 35 Bizarre recursive name evaluation - result of runtime parse/eval stdout: stderr: /bin/dash: 5: Illegal number: foo |
osh | 35 Bizarre recursive name evaluation - result of runtime parse/eval [osh stdout] Expected '6 6 6 6\n', got '6 1 1 1\n' stdout: 6 1 1 1stderr: osh warning: Invalid integer constant 'foo' osh warning: Invalid integer constant 'bar' osh warning: Invalid integer constant 'spam' |
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: /bin/dash: 2: Syntax error: word unexpected (expecting ")") |
bash | 38 Invalid LValue stdout: 9stderr: /bin/bash: line 2: ((: (a + 2) = 3 : attempted assignment to non-variable (error token is "= 3 ") |
mksh | 38 Invalid LValue stdout: 9stderr: /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: /bin/dash: 1: 1[2]: not found |
bash | 39 Invalid LValue that looks like array stdout: status=1stderr: /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: /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: /bin/dash: 1: a[1][2]: not found |
bash | 40 Invalid LValue: two sets of brackets stdout: status=1stderr: /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: /bin/mksh: <stdin>[1]: a[1][2] = 3 : unexpected '[' |
zsh | 40 Invalid LValue: two sets of brackets stdout: status=2stderr: zsh: bad base syntax |