spec test index / oilshell.org
204 passed, 21 ok, 33 known unimplemented, 11 known bugs, 2 failed, 0 skipped
dash | 0 Side Effect in Array Indexing stdout: stderr: _tmp/spec-bin/dash: 1: Syntax error: "(" unexpected |
zsh | 0 Side Effect in Array Indexing stdout: 5 b=2stderr: |
osh-byterun | 0 Side Effect in Array Indexing [osh-byterun stdout] Expected '6 b=2\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 1 Add one to var [osh-byterun stdout] Expected '2\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 2 $ is optional [osh-byterun stdout] Expected '2\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 3 SimpleVarSub within arith [osh-byterun stdout] Expected '1\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 4 BracedVarSub within ArithSub [osh-byterun stdout] Expected '6\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 5 Arith word part [osh-byterun stdout] Expected '2bar2\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 6 Arith sub with word parts [osh-byterun stdout] Expected '14\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 7 Constant with quotes like '1' stdout: stderr: _tmp/spec-bin/dash: 1: arithmetic expression: expecting primary: "'1' + 2" |
bash | 7 Constant with quotes like '1' stdout: stderr: _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: ' |
osh-byterun | 7 Constant with quotes like '1' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 8 Arith sub within arith sub [osh-byterun stdout] Expected '10\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 9 Backticks within arith sub [osh-byterun stdout] Expected '3\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 10 Invalid string to int stdout: stderr: _tmp/spec-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: Line 2 of '<stdin>' echo $((s+5)) ^ osh warning: Invalid integer constant 'foo' |
osh_ALT | 10 Invalid string to int stdout: 5stderr: Line 2 of '<stdin>' echo $((s+5)) ^ osh warning: Invalid integer constant 'foo' |
osh-byterun | 10 Invalid string to int [osh-byterun stdout] Expected '5\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 11 Invalid string to int with strict-arith stdout: stderr: _tmp/spec-bin/dash: 1: set: Illegal option -o strict-arith |
bash | 11 Invalid string to int with strict-arith stdout: foo 5 should not get herestderr: _tmp/spec-bin/bash: line 1: set: strict-arith: invalid option name |
mksh | 11 Invalid string to int with strict-arith stdout: stderr: _tmp/spec-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 |
osh-byterun | 11 Invalid string to int with strict-arith [osh-byterun stdout] Expected u'foo\n', got '' stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 12 Newline in the middle of expression [osh-byterun stdout] Expected '3\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 13 Ternary operator [osh-byterun stdout] Expected '10\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 14 Preincrement stdout: 4 4stderr: |
osh-byterun | 14 Preincrement [osh-byterun stdout] Expected u'5\n5\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 15 Postincrement stdout: stderr: _tmp/spec-bin/dash: 2: arithmetic expression: expecting primary: "a++" |
osh-byterun | 15 Postincrement [osh-byterun stdout] Expected u'4\n5\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 16 Increment undefined variables stdout: [][]stderr: _tmp/spec-bin/dash: 1: undef1++: not found _tmp/spec-bin/dash: 2: ++undef2: not found |
osh-byterun | 16 Increment undefined variables [osh-byterun stdout] Expected '[1][1]\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 17 Increment and decrement array stdout: stderr: _tmp/spec-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-byterun | 17 Increment and decrement array [osh-byterun stdout] Expected '6 7 6 7 - 1 1 -1 -1\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 18 Increment undefined variables with nounset stdout: stderr: _tmp/spec-bin/dash: 2: undef1++: not found _tmp/spec-bin/dash: 3: ++undef2: not found _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: _tmp/spec-bin/dash: 3: arithmetic expression: expecting EOF: "a,(b+1)" |
osh-byterun | 19 Comma operator (borrowed from C) [osh-byterun stdout] Expected '3\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 20 Augmented assignment [osh-byterun stdout] Expected u'5\n5\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 21 Comparison Ops [osh-byterun stdout] Expected u'1\n0\n0\n1\n0\n1\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 22 Logical Ops [osh-byterun stdout] Expected u'1\n1\n0\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 23 Logical Ops Short Circuit stdout: 11 11 11 11stderr: _tmp/spec-bin/dash: 2: 1: not found _tmp/spec-bin/dash: 2: x: not found _tmp/spec-bin/dash: 4: 0: not found _tmp/spec-bin/dash: 4: x: not found _tmp/spec-bin/dash: 6: 0: not found _tmp/spec-bin/dash: 8: 1: not found |
osh-byterun | 23 Logical Ops Short Circuit [osh-byterun stdout] Expected u'11\n33\n33\n55\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 24 Bitwise ops [osh-byterun stdout] Expected u'3\n0\n3\n-4\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 25 Unary minus and plus [osh-byterun stdout] Expected u'2\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
bash | 26 No floating point stdout: stderr: _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: _tmp/spec-bin/mksh: <stdin>[1]: 1 + 2.3: unexpected '.' |
zsh | 26 No floating point stdout: 3.2999999999999998stderr: |
osh-byterun | 26 No floating point [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 27 Array indexing in arith stdout: stderr: _tmp/spec-bin/dash: 1: Syntax error: "(" unexpected |
zsh | 27 Array indexing in arith stdout: 7stderr: |
osh-byterun | 27 Array indexing in arith [osh-byterun stdout] Expected '11\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 28 Constants in base 36 stdout: stderr: _tmp/spec-bin/dash: 1: arithmetic expression: expecting EOF: "36#a" |
osh-byterun | 28 Constants in base 36 [osh-byterun stdout] Expected '10-35\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 29 Constants in bases 2 to 64 stdout: stderr: _tmp/spec-bin/dash: 1: arithmetic expression: expecting EOF: "64#a" |
mksh | 29 Constants in bases 2 to 64 stdout: stderr: _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 |
osh-byterun | 29 Constants in bases 2 to 64 [osh-byterun stdout] Expected '10-35, 36-61, 62, 63\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 30 Dynamic base constants stdout: stderr: _tmp/spec-bin/dash: 2: arithmetic expression: expecting EOF: " 16#a " |
osh-byterun | 30 Dynamic base constants [osh-byterun stdout] Expected '10\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 31 Octal constant stdout: 11stderr: |
zsh | 31 Octal constant stdout: 11stderr: |
osh-byterun | 31 Octal constant [osh-byterun stdout] Expected '9\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
mksh | 32 Dynamic octal constant stdout: 11stderr: |
zsh | 32 Dynamic octal constant stdout: 11stderr: |
osh-byterun | 32 Dynamic octal constant [osh-byterun stdout] Expected '9\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 33 Dynamic hex constants [osh-byterun stdout] Expected '171\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh | 34 Dynamic var names - result of runtime parse/eval [osh stdout] Expected '11\n', got '6\n' stdout: 6stderr: Line 3 of '<stdin>' echo $(( foo + f$x + 1 )) ^ osh warning: Invalid integer constant 'foo' |
osh_ALT | 34 Dynamic var names - result of runtime parse/eval [osh_ALT stdout] Expected '11\n', got '6\n' stdout: 6stderr: Line 3 of '<stdin>' echo $(( foo + f$x + 1 )) ^ osh warning: Invalid integer constant 'foo' |
osh-byterun | 34 Dynamic var names - result of runtime parse/eval [osh-byterun stdout] Expected '11\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 35 Bizarre recursive name evaluation - result of runtime parse/eval stdout: stderr: _tmp/spec-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: Line 5 of '<stdin>' echo $((foo+1)) $((bar+1)) $((spam+1)) $((eggs+1)) ^~~ osh warning: Invalid integer constant 'foo' Line 5 of '<stdin>' echo $((foo+1)) $((bar+1)) $((spam+1)) $((eggs+1)) ^~~~ osh warning: Invalid integer constant 'bar' Line 5 of '<stdin>' echo $((foo+1)) $((bar+1)) $((spam+1)) $((eggs+1)) ^~~~ osh warning: Invalid integer constant 'spam' |
osh_ALT | 35 Bizarre recursive name evaluation - result of runtime parse/eval [osh_ALT stdout] Expected '6 6 6 6\n', got '6 1 1 1\n' stdout: 6 1 1 1stderr: Line 5 of '<stdin>' echo $((foo+1)) $((bar+1)) $((spam+1)) $((eggs+1)) ^~~ osh warning: Invalid integer constant 'foo' Line 5 of '<stdin>' echo $((foo+1)) $((bar+1)) $((spam+1)) $((eggs+1)) ^~~~ osh warning: Invalid integer constant 'bar' Line 5 of '<stdin>' echo $((foo+1)) $((bar+1)) $((spam+1)) $((eggs+1)) ^~~~ osh warning: Invalid integer constant 'spam' |
osh-byterun | 35 Bizarre recursive name evaluation - result of runtime parse/eval [osh-byterun stdout] Expected '6 6 6 6\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
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: |
osh-byterun | 37 Integer Overflow [osh-byterun stdout] Expected '999996000005999996000001\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 38 Invalid LValue stdout: stderr: _tmp/spec-bin/dash: 2: Syntax error: word unexpected (expecting ")") |
bash | 38 Invalid LValue stdout: 9stderr: _tmp/spec-bin/bash: line 2: ((: (a + 2) = 3 : attempted assignment to non-variable (error token is "= 3 ") |
mksh | 38 Invalid LValue stdout: 9stderr: _tmp/spec-bin/mksh: <stdin>[2]: (a + 2) = 3 : = requires lvalue |
zsh | 38 Invalid LValue stdout: 9stderr: zsh: bad math expression: lvalue required |
osh-byterun | 38 Invalid LValue [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 39 Invalid LValue that looks like array stdout: status=127stderr: _tmp/spec-bin/dash: 1: 1[2]: not found |
bash | 39 Invalid LValue that looks like array stdout: status=1stderr: _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: _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 |
osh-byterun | 39 Invalid LValue that looks like array [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 40 Invalid LValue: two sets of brackets stdout: status=127stderr: _tmp/spec-bin/dash: 1: a[1][2]: not found |
bash | 40 Invalid LValue: two sets of brackets stdout: status=1stderr: _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: _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 |
osh-byterun | 40 Invalid LValue: two sets of brackets [osh-byterun status] Expected 2, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
osh-byterun | 41 Operator Precedence [osh-byterun stdout] Expected '3\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 42 Exponentiation with ** stdout: stderr: _tmp/spec-bin/dash: 1: arithmetic expression: expecting primary: " 3 ** 0 " |
mksh | 42 Exponentiation with ** stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: 3 ** 0 : unexpected '*' |
osh-byterun | 42 Exponentiation with ** [osh-byterun stdout] Expected '1\n3\n9\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 43 Exponentiation operator has buggy precedence stdout: stderr: _tmp/spec-bin/dash: 1: arithmetic expression: expecting primary: " -3 ** 2 " |
mksh | 43 Exponentiation operator has buggy precedence stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: -3 ** 2 : unexpected '*' |
osh-byterun | 43 Exponentiation operator has buggy precedence [osh-byterun status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/opy_.py", line 10, in <module> from frontend import args ImportError: No module named frontend |
dash | 44 Negative exponent stdout: stderr: _tmp/spec-bin/dash: 1: arithmetic expression: expecting primary: " 2**-1 * 5 " |
zsh | 44 Negative exponent stdout: 2.5stderr: |