Results for array-compat.test.sh

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

4 passed, 0 ok, 0 known unimplemented, 0 known bugs, 5 failed, 0 skipped

Details on runs that didn't PASS

bash0 Assignment Causes Array Decay

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

stdout:
stderr: 
/bin/bash: line 3: argv: command not found
mksh0 Assignment Causes Array Decay

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

stdout:
stderr: 
/bin/mksh: <stdin>[3]: argv: not found
osh0 Assignment Causes Array Decay

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

stdout:
stderr: 
Unexpected error in execvpe('argv', ['argv', '[x', 'y', 'z]'], ...): [Errno 2] No such file or directory
osh1 User arrays decay

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

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 428, in <module>
    main(sys.argv)
  File "bin/osh", line 415, in main
    sys.exit(OilMain(argv))
  File "bin/osh", line 398, in OilMain
    status = OshMain(main_argv)
  File "bin/osh", line 357, in OshMain
    status = ex.Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 1113, in Execute
    status = self._Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 976, in _Execute
    status = self._Execute(child)  # last status wins
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 942, in _Execute
    ok, val = self.ev.EvalWordToAny(pair.rhs)
  File "/home/andy/git/oil/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 '1\n', got '1 2 3\n'

stdout:
1 2 3
stderr: