case | bash | mksh | osh | description |
0 | pass | pass | FAIL | Assignment Causes Array Decay |
details | ||||
1 | pass | pass | FAIL | User arrays decay |
details | ||||
2 | pass | pass | FAIL | $a gives first element of array |
details |
6 passed, 0 ok, 0 known unimplemented, 0 known bugs, 3 failed, 0 skipped
osh | 0 Assignment Causes Array Decay [osh stdout] Expected b"['[x y z]']\n", got b"['[x', 'y', 'z]']\n" stdout: ['[x', 'y', 'z]']stderr: |
osh | 1 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 378, in <module> sys.exit(main(sys.argv)) File "bin/osh", line 368, in main return OshMain(main_argv) File "bin/osh", line 327, in OshMain status = ex.Execute(node) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 959, in Execute status = self._Execute(node) File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 824, in _Execute status = self._Execute(child) # last status wins File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 789, in _Execute ok, val = self.ev.EvalWordToAny(pair.rhs) File "/home/andy/git/oil/bin/../core/word_eval.py", line 931, in EvalWordToAny if (len(word.parts) == 1 and AttributeError: 'NoneType' object has no attribute 'parts' |
osh | 2 $a gives first element of array [osh stdout] Expected b'1\n', got b'1 2 3\n' stdout: 1 2 3stderr: |