Results for arith-context.test.sh

casebashmkshzshoshosh_ALTosh-byterundescription
0pass pass N-I pass pass pass Multiple right brackets inside expression
details
1pass pass pass pass pass pass Slicing of string with constants
2pass pass pass pass pass pass Slicing of string with variables
3pass pass ok FAIL FAIL FAIL Array index on LHS of assignment
detailsdetailsdetailsdetails
4pass pass BUG FAIL FAIL FAIL Array index on LHS with spaces
detailsdetailsdetailsdetails
5pass pass ok FAIL FAIL FAIL Array index on LHS with indices
detailsdetailsdetailsdetails
6pass BUG BUG pass pass pass Slicing of string with expressions
detailsdetails
7pass BUG BUG pass pass pass Ambiguous colon in slice
detailsdetails
8pass pass pass pass pass pass Triple parens should be disambiguated
9pass pass pass pass pass pass Quadruple parens should be disambiguated
10pass N-I pass pass pass pass Alternative $[] syntax
details

48 passed, 2 ok, 2 known unimplemented, 5 known bugs, 3 failed, 0 skipped

Details on runs that didn't PASS

zsh0 Multiple right brackets inside expression

stdout:
stderr: 
zsh3 Array index on LHS of assignment

stdout:
X 2 3
stderr:
osh3 Array index on LHS of assignment

[osh stdout] Expected '1 X 3\n', got '1 2 3\n'

stdout:
1 2 3
stderr:
osh error: 'a[zero+5-4]=X': No such file or directory
osh_ALT3 Array index on LHS of assignment

[osh_ALT stdout] Expected '1 X 3\n', got '1 2 3\n'

stdout:
1 2 3
stderr:
osh error: 'a[zero+5-4]=X': No such file or directory
osh-byterun3 Array index on LHS of assignment

[osh-byterun stdout] Expected '1 X 3\n', got '1 2 3\n'

stdout:
1 2 3
stderr:
osh error: 'a[zero+5-4]=X': No such file or directory
zsh4 Array index on LHS with spaces

stdout:
stderr: 
zsh: bad pattern: a[zero
osh4 Array index on LHS with spaces

[osh stdout] Expected '1 X 3\n', got '1 2 3\n'

stdout:
1 2 3
stderr:
osh error: 'a[zero': No such file or directory
osh_ALT4 Array index on LHS with spaces

[osh_ALT stdout] Expected '1 X 3\n', got '1 2 3\n'

stdout:
1 2 3
stderr:
osh error: 'a[zero': No such file or directory
osh-byterun4 Array index on LHS with spaces

[osh-byterun stdout] Expected '1 X 3\n', got '1 2 3\n'

stdout:
1 2 3
stderr:
osh error: 'a[zero': No such file or directory
zsh5 Array index on LHS with indices

stdout:
X 2 3
stderr:
osh5 Array index on LHS with indices

[osh stdout] Expected '1 2 X\n', got '1 2 3\n'

stdout:
1 2 3
stderr:
osh error: 'a[a[1]]=X': No such file or directory
osh_ALT5 Array index on LHS with indices

[osh_ALT stdout] Expected '1 2 X\n', got '1 2 3\n'

stdout:
1 2 3
stderr:
osh error: 'a[a[1]]=X': No such file or directory
osh-byterun5 Array index on LHS with indices

[osh-byterun stdout] Expected '1 2 X\n', got '1 2 3\n'

stdout:
1 2 3
stderr:
osh error: 'a[a[1]]=X': No such file or directory
mksh6 Slicing of string with expressions

stdout:
stderr: 
_tmp/spec-bin/mksh: <stdin>[3]: ${s:zero}: bad substitution
zsh6 Slicing of string with expressions

stdout:
stderr: 
zsh: unrecognized modifier `z'
mksh7 Ambiguous colon in slice

stdout:
2
stderr:
_tmp/spec-bin/mksh: <stdin>[3]: ${s: 0 < 1 ? 2 : 0 : 1}: bad substitution
zsh7 Ambiguous colon in slice

stdout:
2
stderr:
zsh: bad math expression: ':' expected
mksh10 Alternative $[] syntax

stdout:
$[1 + 2] $[3 * 4]
stderr: