Results for assign.test.sh

casedashbashmkshoshosh_ALTdescription
0pass pass pass pass pass Env value doesn't persist
1pass pass pass pass pass Env value with equals
2pass pass BUG pass pass Env value using preceding Env binding
details
3pass pass pass pass pass Env value with two quotes
4pass pass pass pass pass Env value with escaped <
5pass pass pass pass pass Escaped = in command name
6BUG pass ok FAIL FAIL Env binding not allowed before compound command
detailsdetailsdetailsdetails
7pass pass pass pass pass Trying to run keyword 'for'
8pass pass pass pass pass Empty env binding
9pass pass pass pass pass Assignment doesn't do word splitting
10pass pass pass pass pass Assignment doesn't do glob expansion
11ok ok ok pass pass Env binding in readonly/declare disallowed
detailsdetailsdetails
12N-I pass N-I pass pass local -a
detailsdetails
13N-I pass N-I pass pass declare -a
detailsdetails
14N-I pass pass FAIL FAIL typeset -a a[1]=a a[3]=c
detailsdetailsdetails
15N-I pass pass FAIL FAIL indexed LHS without spaces is allowed
detailsdetailsdetails

62 passed, 4 ok, 6 known unimplemented, 2 known bugs, 3 failed, 0 skipped

Details on runs that didn't PASS

mksh2 Env value using preceding Env binding

stdout:
foo
[]
stderr:
dash6 Env binding not allowed before compound command

stdout:
stderr: 
/bin/dash: 1: for: not found
mksh6 Env binding not allowed before compound command

stdout:
stderr: 
/bin/mksh: <stdin>[1]: syntax error: 'do' unexpected
osh6 Env binding not allowed before compound command

[osh status] Expected 2, got 127

stdout:
stderr: 
Unexpected error in execvpe('for', ['for', 'i', 'in', 'a', 'b'], ...): [Errno 2] No such file or directory
osh_ALT6 Env binding not allowed before compound command

[osh_ALT status] Expected 2, got 127

stdout:
stderr: 
Unexpected error in execvpe('for', ['for', 'i', 'in', 'a', 'b'], ...): [Errno 2] No such file or directory
dash11 Env binding in readonly/declare disallowed

stdout:
v=None
stderr:
bash11 Env binding in readonly/declare disallowed

stdout:
v=None
stderr:
mksh11 Env binding in readonly/declare disallowed

stdout:
v=None
stderr:
dash12 local -a

stdout:
stderr: 
/bin/dash: 2: Syntax error: "(" unexpected (expecting "}")
mksh12 local -a

stdout:
stderr: 
/bin/mksh: <stdin>[2]: syntax error: '(' unexpected
dash13 declare -a

stdout:
stderr: 
/bin/dash: 1: Syntax error: "(" unexpected
mksh13 declare -a

stdout:
stderr: 
/bin/mksh: <stdin>[1]: syntax error: '(' unexpected
dash14 typeset -a a[1]=a a[3]=c

stdout:
stderr: 
/bin/dash: 1: typeset: not found
/bin/dash: 2: Bad substitution
osh14 typeset -a a[1]=a a[3]=c

[osh stdout] Expected "['x', 'z']\n", got ''
[osh status] Expected 0, got 2

stdout:
stderr: 
Line 1 of '<stdin>'
  typeset -a a[1*1]=x a[1+2]=z
             ^
Invalid variable name 'a[1*1]=x'
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
osh_ALT14 typeset -a a[1]=a a[3]=c

[osh_ALT stdout] Expected "['x', 'z']\n", got ''
[osh_ALT status] Expected 0, got 2

stdout:
stderr: 
Line 1 of '<stdin>'
  typeset -a a[1*1]=x a[1+2]=z
             ^
Invalid variable name 'a[1*1]=x'
---
Line 0 of '<unknown>'
  <no position info for token>
Error parsing AndOr in ParseCommandTerm
---
dash15 indexed LHS without spaces is allowed

stdout:
stderr: 
/bin/dash: 1: a[1: not found
/bin/dash: 2: Bad substitution
osh15 indexed LHS without spaces is allowed

[osh stdout] Expected "['x', 'z']\n", got '[]\n'

stdout:
[]
stderr:
Unexpected error in execvpe('a[1', ['a[1', 'INSTALL.txt', 'LICENSE.txt', 'Makefile', 'NOTES.txt', 'Python-2.7.13', 'README.md', 'TODO.txt', 'Vagrantfile', '__init__.py', '_bin', '_build', '_chroot', '_devbuild', '_release', '_tmp', 'asdl', 'benchmarks', 'bin', 'build', 'configure', 'core', 'doc', 'gold', 'install', 'libc.so', 'local.sh', 'native', 'oil', 'oil-version.txt', 'opy', 'osh', 'out.txt', 'scripts', 'setup.sh', 'spec', 'test', 'tools', 'web', '1]=x', 'a[', '1', '+', '2', ']=z'], ...): [Errno 2] No such file or directory
osh_ALT15 indexed LHS without spaces is allowed

[osh_ALT stdout] Expected "['x', 'z']\n", got '[]\n'

stdout:
[]
stderr:
Unexpected error in execvpe('a[1', ['a[1', 'INSTALL.txt', 'LICENSE.txt', 'Makefile', 'NOTES.txt', 'Python-2.7.13', 'README.md', 'TODO.txt', 'Vagrantfile', '__init__.py', '_bin', '_build', '_chroot', '_devbuild', '_release', '_tmp', 'asdl', 'benchmarks', 'bin', 'build', 'configure', 'core', 'doc', 'gold', 'install', 'libc.so', 'local.sh', 'native', 'oil', 'oil-version.txt', 'opy', 'osh', 'out.txt', 'scripts', 'setup.sh', 'spec', 'test', 'tools', 'web', '1]=x', 'a[', '1', '+', '2', ']=z'], ...): [Errno 2] No such file or directory