Results for array-compat.test.sh

casebashmkshoshdescription
0pass pass FAIL Assignment Causes Array Decay
details
1pass pass FAIL User arrays decay
details
2pass pass FAIL $a gives first element of array
details

6 passed, 0 ok, 0 known unimplemented, 0 known bugs, 3 failed, 0 skipped

Details on runs that didn't PASS

osh0 Assignment Causes Array Decay

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

stdout:
['[x', 'y', 'z]']
stderr:
osh1 User arrays decay

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

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 388, in <module>
    sys.exit(main(sys.argv))
  File "bin/osh", line 378, in main
    return OshMain(main_argv)
  File "bin/osh", line 337, in OshMain
    status = ex.Execute(node)
  File "/home/andy/git/oil2/bin/../core/cmd_exec.py", line 1111, in Execute
    status = self._Execute(node)
  File "/home/andy/git/oil2/bin/../core/cmd_exec.py", line 974, in _Execute
    status = self._Execute(child)  # last status wins
  File "/home/andy/git/oil2/bin/../core/cmd_exec.py", line 940, in _Execute
    ok, val = self.ev.EvalWordToAny(pair.rhs)
  File "/home/andy/git/oil2/bin/../core/word_eval.py", line 934, in EvalWordToAny
    if (len(word.parts) == 1 and 
AttributeError: 'NoneType' object has no attribute 'parts'
osh2 $a gives first element of array

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

stdout:
1 2 3
stderr: