Results for arith.test.sh

casedashbashmkshzshoshosh_ALTosh-byterundescription
0N-I pass pass ok pass pass FAIL Side Effect in Array Indexing
detailsdetailsdetails
1pass pass pass pass pass pass FAIL Add one to var
details
2pass pass pass pass pass pass FAIL $ is optional
details
3pass pass pass pass pass pass FAIL SimpleVarSub within arith
details
4pass pass pass pass pass pass FAIL BracedVarSub within ArithSub
details
5pass pass pass pass pass pass FAIL Arith word part
details
6pass pass pass pass pass pass FAIL Arith sub with word parts
details
7N-I N-I pass N-I pass pass FAIL Constant with quotes like '1'
detailsdetailsdetailsdetails
8pass pass pass pass pass pass FAIL Arith sub within arith sub
details
9pass pass pass pass pass pass FAIL Backticks within arith sub
details
10ok ok ok ok ok ok FAIL Invalid string to int
detailsdetailsdetailsdetailsdetailsdetailsdetails
11N-I N-I N-I N-I pass pass FAIL Invalid string to int with strict-arith
detailsdetailsdetailsdetailsdetails
12pass pass pass pass pass pass FAIL Newline in the middle of expression
details
13pass pass pass pass pass pass FAIL Ternary operator
details
14N-I pass pass pass pass pass FAIL Preincrement
detailsdetails
15N-I pass pass pass pass pass FAIL Postincrement
detailsdetails
16N-I pass pass pass pass pass FAIL Increment undefined variables
detailsdetails
17N-I pass pass BUG pass pass FAIL Increment and decrement array
detailsdetailsdetails
18ok pass BUG BUG pass pass pass Increment undefined variables with nounset
detailsdetailsdetails
19N-I pass pass pass pass pass FAIL Comma operator (borrowed from C)
detailsdetails
20pass pass pass pass pass pass FAIL Augmented assignment
details
21pass pass pass pass pass pass FAIL Comparison Ops
details
22pass pass pass pass pass pass FAIL Logical Ops
details
23N-I pass pass pass pass pass FAIL Logical Ops Short Circuit
detailsdetails
24pass pass pass pass pass pass FAIL Bitwise ops
details
25pass pass pass pass pass pass FAIL Unary minus and plus
details
26pass ok ok BUG pass pass FAIL No floating point
detailsdetailsdetailsdetails
27N-I pass pass ok pass pass FAIL Array indexing in arith
detailsdetailsdetails
28N-I pass pass pass pass pass FAIL Constants in base 36
detailsdetails
29N-I pass N-I N-I pass pass FAIL Constants in bases 2 to 64
detailsdetailsdetailsdetails
30N-I pass pass pass pass pass FAIL Dynamic base constants
detailsdetails
31pass pass N-I N-I pass pass FAIL Octal constant
detailsdetailsdetails
32pass pass N-I N-I pass pass FAIL Dynamic octal constant
detailsdetailsdetails
33pass pass pass pass pass pass FAIL Dynamic hex constants
details
34pass pass pass pass FAIL FAIL FAIL Dynamic var names - result of runtime parse/eval
detailsdetailsdetails
35N-I pass pass pass FAIL FAIL FAIL Bizarre recursive name evaluation - result of runtime parse/eval
detailsdetailsdetailsdetails
36BUG pass BUG BUG pass pass pass nounset with arithmetic
detailsdetailsdetails
37BUG BUG BUG BUG pass pass FAIL Integer Overflow
detailsdetailsdetailsdetailsdetails
38N-I ok ok ok pass pass FAIL Invalid LValue
detailsdetailsdetailsdetailsdetails
39N-I ok ok ok pass pass FAIL Invalid LValue that looks like array
detailsdetailsdetailsdetailsdetails
40N-I ok ok ok pass pass FAIL Invalid LValue: two sets of brackets
detailsdetailsdetailsdetailsdetails
41pass pass pass pass pass pass FAIL Operator Precedence
details
42N-I pass N-I pass pass pass FAIL Exponentiation with **
detailsdetailsdetails
43N-I pass N-I pass pass pass FAIL Exponentiation operator has buggy precedence
detailsdetailsdetails
44N-I pass pass ok pass pass pass Negative exponent
detailsdetails

204 passed, 21 ok, 33 known unimplemented, 11 known bugs, 2 failed, 0 skipped

Details on runs that didn't PASS

dash0 Side Effect in Array Indexing

stdout:
stderr: 
_tmp/spec-bin/dash: 1: Syntax error: "(" unexpected
zsh0 Side Effect in Array Indexing

stdout:
5 b=2
stderr:
osh-byterun0 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-byterun1 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-byterun2 $ 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-byterun3 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-byterun4 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-byterun5 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-byterun6 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
dash7 Constant with quotes like '1'

stdout:
stderr: 
_tmp/spec-bin/dash: 1: arithmetic expression: expecting primary: "'1' + 2"
bash7 Constant with quotes like '1'

stdout:
stderr: 
_tmp/spec-bin/bash: line 1: '1' + 2: syntax error: operand expected (error token is "'1' + 2")
zsh7 Constant with quotes like '1'

stdout:
stderr: 
zsh: bad math expression: illegal character: '
osh-byterun7 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-byterun8 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-byterun9 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
dash10 Invalid string to int

stdout:
stderr: 
_tmp/spec-bin/dash: 2: Illegal number: foo
bash10 Invalid string to int

stdout:
5
stderr:
mksh10 Invalid string to int

stdout:
5
stderr:
zsh10 Invalid string to int

stdout:
5
stderr:
osh10 Invalid string to int

stdout:
5
stderr:
Line 2 of '<stdin>'
  echo $((s+5))
          ^
osh warning: Invalid integer constant 'foo'
osh_ALT10 Invalid string to int

stdout:
5
stderr:
Line 2 of '<stdin>'
  echo $((s+5))
          ^
osh warning: Invalid integer constant 'foo'
osh-byterun10 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
dash11 Invalid string to int with strict-arith

stdout:
stderr: 
_tmp/spec-bin/dash: 1: set: Illegal option -o strict-arith
bash11 Invalid string to int with strict-arith

stdout:
foo
5
should not get here
stderr:
_tmp/spec-bin/bash: line 1: set: strict-arith: invalid option name
mksh11 Invalid string to int with strict-arith

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[1]: set: strict-arith: bad option
zsh11 Invalid string to int with strict-arith

stdout:
stderr: 
set: no such option: strict-arith
osh-byterun11 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-byterun12 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-byterun13 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
dash14 Preincrement

stdout:
4
4
stderr:
osh-byterun14 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
dash15 Postincrement

stdout:
stderr: 
_tmp/spec-bin/dash: 2: arithmetic expression: expecting primary: "a++"
osh-byterun15 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
dash16 Increment undefined variables

stdout:
[][]
stderr:
_tmp/spec-bin/dash: 1: undef1++: not found
_tmp/spec-bin/dash: 2: ++undef2: not found
osh-byterun16 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
dash17 Increment and decrement array

stdout:
stderr: 
_tmp/spec-bin/dash: 1: Syntax error: "(" unexpected
zsh17 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-byterun17 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
dash18 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
mksh18 Increment undefined variables with nounset

stdout:
[1][1]
stderr:
zsh18 Increment undefined variables with nounset

stdout:
[1][1]
stderr:
dash19 Comma operator (borrowed from C)

stdout:
stderr: 
_tmp/spec-bin/dash: 3: arithmetic expression: expecting EOF: "a,(b+1)"
osh-byterun19 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-byterun20 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-byterun21 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-byterun22 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
dash23 Logical Ops Short Circuit

stdout:
11
11
11
11
stderr:
_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-byterun23 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-byterun24 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-byterun25 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
bash26 No floating point

stdout:
stderr: 
_tmp/spec-bin/bash: line 1: 1 + 2.3: syntax error: invalid arithmetic operator (error token is ".3")
mksh26 No floating point

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[1]: 1 + 2.3: unexpected '.'
zsh26 No floating point

stdout:
3.2999999999999998
stderr:
osh-byterun26 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
dash27 Array indexing in arith

stdout:
stderr: 
_tmp/spec-bin/dash: 1: Syntax error: "(" unexpected
zsh27 Array indexing in arith

stdout:
7
stderr:
osh-byterun27 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
dash28 Constants in base 36

stdout:
stderr: 
_tmp/spec-bin/dash: 1: arithmetic expression: expecting EOF: "36#a"
osh-byterun28 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
dash29 Constants in bases 2 to 64

stdout:
stderr: 
_tmp/spec-bin/dash: 1: arithmetic expression: expecting EOF: "64#a"
mksh29 Constants in bases 2 to 64

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[1]: 64#a: bad number '64#a'
zsh29 Constants in bases 2 to 64

stdout:
stderr: 
zsh: invalid base (must be 2 to 36 inclusive): 64
osh-byterun29 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
dash30 Dynamic base constants

stdout:
stderr: 
_tmp/spec-bin/dash: 2: arithmetic expression: expecting EOF: " 16#a "
osh-byterun30 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
mksh31 Octal constant

stdout:
11
stderr:
zsh31 Octal constant

stdout:
11
stderr:
osh-byterun31 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
mksh32 Dynamic octal constant

stdout:
11
stderr:
zsh32 Dynamic octal constant

stdout:
11
stderr:
osh-byterun32 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-byterun33 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
osh34 Dynamic var names - result of runtime parse/eval

[osh stdout] Expected '11\n', got '6\n'

stdout:
6
stderr:
Line 3 of '<stdin>'
  echo $(( foo + f$x + 1 ))
                 ^
osh warning: Invalid integer constant 'foo'
osh_ALT34 Dynamic var names - result of runtime parse/eval

[osh_ALT stdout] Expected '11\n', got '6\n'

stdout:
6
stderr:
Line 3 of '<stdin>'
  echo $(( foo + f$x + 1 ))
                 ^
osh warning: Invalid integer constant 'foo'
osh-byterun34 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
dash35 Bizarre recursive name evaluation - result of runtime parse/eval

stdout:
stderr: 
_tmp/spec-bin/dash: 5: Illegal number: foo
osh35 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 1
stderr:
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_ALT35 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 1
stderr:
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-byterun35 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
dash36 nounset with arithmetic

stdout:
should not get here: x=5
stderr:
mksh36 nounset with arithmetic

stdout:
should not get here: x=5
stderr:
zsh36 nounset with arithmetic

stdout:
should not get here: x=5
stderr:
dash37 Integer Overflow

stdout:
-1996229794797103359
stderr:
bash37 Integer Overflow

stdout:
-1996229794797103359
stderr:
mksh37 Integer Overflow

stdout:
-15640831
stderr:
zsh37 Integer Overflow

stdout:
-1996229794797103359
stderr:
osh-byterun37 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
dash38 Invalid LValue

stdout:
stderr: 
_tmp/spec-bin/dash: 2: Syntax error: word unexpected (expecting ")")
bash38 Invalid LValue

stdout:
9
stderr:
_tmp/spec-bin/bash: line 2: ((: (a + 2) = 3 : attempted assignment to non-variable (error token is "= 3 ")
mksh38 Invalid LValue

stdout:
9
stderr:
_tmp/spec-bin/mksh: <stdin>[2]:  (a + 2) = 3 : = requires lvalue
zsh38 Invalid LValue

stdout:
9
stderr:
zsh: bad math expression: lvalue required
osh-byterun38 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
dash39 Invalid LValue that looks like array

stdout:
status=127
stderr:
_tmp/spec-bin/dash: 1: 1[2]: not found
bash39 Invalid LValue that looks like array

stdout:
status=1
stderr:
_tmp/spec-bin/bash: line 1: ((: 1[2] = 3 : syntax error: invalid arithmetic operator (error token is "[2] = 3 ")
mksh39 Invalid LValue that looks like array

stdout:
status=2
stderr:
_tmp/spec-bin/mksh: <stdin>[1]:  1[2] = 3 : unexpected '['
zsh39 Invalid LValue that looks like array

stdout:
status=2
stderr:
zsh: bad base syntax
osh-byterun39 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
dash40 Invalid LValue: two sets of brackets

stdout:
status=127
stderr:
_tmp/spec-bin/dash: 1: a[1][2]: not found
bash40 Invalid LValue: two sets of brackets

stdout:
status=1
stderr:
_tmp/spec-bin/bash: line 1: ((: a[1][2] = 3 : syntax error: invalid arithmetic operator (error token is "[2] = 3 ")
mksh40 Invalid LValue: two sets of brackets

stdout:
status=2
stderr:
_tmp/spec-bin/mksh: <stdin>[1]:  a[1][2] = 3 : unexpected '['
zsh40 Invalid LValue: two sets of brackets

stdout:
status=2
stderr:
zsh: bad base syntax
osh-byterun40 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-byterun41 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
dash42 Exponentiation with **

stdout:
stderr: 
_tmp/spec-bin/dash: 1: arithmetic expression: expecting primary: " 3 ** 0 "
mksh42 Exponentiation with **

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[1]:  3 ** 0 : unexpected '*'
osh-byterun42 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
dash43 Exponentiation operator has buggy precedence

stdout:
stderr: 
_tmp/spec-bin/dash: 1: arithmetic expression: expecting primary: " -3 ** 2 "
mksh43 Exponentiation operator has buggy precedence

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[1]:  -3 ** 2 : unexpected '*'
osh-byterun43 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
dash44 Negative exponent

stdout:
stderr: 
_tmp/spec-bin/dash: 1: arithmetic expression: expecting primary: " 2**-1 * 5 "
zsh44 Negative exponent

stdout:
2.5
stderr: