Results for arith-context.test.sh

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

40 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:
Unexpected error in execvpe('a[zero+5-4]=X', ['a[zero+5-4]=X'], ...): [Errno 2] 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:
Unexpected error in execvpe('a[zero+5-4]=X', ['a[zero+5-4]=X'], ...): [Errno 2] 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:
Unexpected error in execvpe('a[zero', ['a[zero', '+', '5', '-', '4]=X'], ...): [Errno 2] 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:
Unexpected error in execvpe('a[zero', ['a[zero', '+', '5', '-', '4]=X'], ...): [Errno 2] 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:
Unexpected error in execvpe('a[a[1]]=X', ['a[a[1]]=X'], ...): [Errno 2] 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:
Unexpected error in execvpe('a[a[1]]=X', ['a[a[1]]=X'], ...): [Errno 2] No such file or directory
mksh6 Slicing of string with expressions

stdout:
stderr: 
/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:
/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: