Results for assign-dialects.test.sh

statusbashmkshosh
pass 411
BUG 030
FAIL 003
total444
casebashmkshoshdescription
0pass pass pass K and V are variables in (( array[K] = V ))
1pass BUG FAIL test -v with strings
detailsdetails
2pass BUG FAIL test -v with arrays
detailsdetails
3pass BUG FAIL test -v with assoc arrays
detailsdetails
6 passed, 0 OK, 0 not implemented, 3 BUG, 3 failed, 0 timeouts, 0 cases skipped
3 failed under osh

Details on runs that didn't PASS

mksh1 test -v with strings

stdout:
str=2
str=2
stderr:
mksh: <stdin>[1]: test: str: unexpected operator/operand
mksh: <stdin>[6]: test: str: unexpected operator/operand
osh1 test -v with strings

[osh stdout] Expected 'str=1\nstr=0\n', got 'str=0\nstr=0\n'

stdout:
str=0
str=0
stderr:
mksh2 test -v with arrays

stdout:
a=2
a[0]=2

a=2
a[0]=2

a[1]=2
a[x]=2

stderr:
mksh: <stdin>[3]: test: a: unexpected operator/operand
mksh: <stdin>[5]: test: a[0]: unexpected operator/operand
mksh: <stdin>[11]: test: a: unexpected operator/operand
mksh: <stdin>[13]: test: a[0]: unexpected operator/operand
mksh: <stdin>[17]: test: a[1]: unexpected operator/operand
mksh: <stdin>[20]: test: a[x]: unexpected operator/operand
osh2 test -v with arrays

[osh stdout] Expected 'a=1\na[0]=1\n\na=0\na[0]=0\n\na[1]=1\na[x]=0\n\n', got 'a=0\na[0]=1\n\na=0\na[0]=0\n\na[1]=1\na[x]=1\n\n'

stdout:
a=0
a[0]=1

a=0
a[0]=0

a[1]=1
a[x]=1

stderr:
mksh3 test -v with assoc arrays

stdout:
A=2
A[0]=2

A=2
A[0]=2

A[1]=2
A[x]=2

stderr:
mksh: <stdin>[1]: typeset: -A: unknown option
mksh: <stdin>[3]: test: A: unexpected operator/operand
mksh: <stdin>[5]: test: A[0]: unexpected operator/operand
mksh: <stdin>[11]: test: A: unexpected operator/operand
mksh: <stdin>[13]: test: A[0]: unexpected operator/operand
mksh: <stdin>[17]: test: A[1]: unexpected operator/operand
mksh: <stdin>[20]: test: A[x]: unexpected operator/operand
osh3 test -v with assoc arrays

[osh stdout] Expected 'A=1\nA[0]=1\n\nA=0\nA[0]=0\n\nA[1]=1\nA[x]=1\n\n', got 'A=0\nA[0]=1\n\nA=0\nA[0]=0\n\nA[1]=1\nA[x]=1\n\n'

stdout:
A=0
A[0]=1

A=0
A[0]=0

A[1]=1
A[x]=1

stderr: