spec test index / oilshell.org
| status | ysh | |
| FAIL | 6 | |
| total | 6 | |
| case | ysh | description |
| 0 | FAIL | Shell Append += with Oil Values (issue #840) |
| details | ||
| 1 | FAIL | Shell ${x:-default} with Oil values (issue #954) |
| details | ||
| 2 | FAIL | Shell ${a[0]} with Oil values (issue #1092) |
| details | ||
| 3 | FAIL | Splice nested List |
| details | ||
| 4 | FAIL | Splice nested Dict |
| details | ||
| 5 | FAIL | Concatenate shell arrays and ${#a} |
| details |
0 passed, 0 OK, 0 not implemented, 0 BUG, 6 failed, 0 timeouts, 0 cases skipped 6 failed under osh
| ysh | 0 Shell Append += with Oil Values (issue #840) [ysh stdout] Expected '', got 'g=2\n' [ysh status] Expected 0, got 2 stdout: g=2stderr: g+=1 ^~~ [ stdin ]:5: Use const or var/setvar to assign in YSH (parse_sh_assign) |
| ysh | 1 Shell ${x:-default} with Oil values (issue #954) [ysh status] Expected 0, got 1 [ysh stderr] Found 'Traceback (most recent' stdout: stderr: Traceback (most recent call last):
File "/home/uke/oil/bin/oils_for_unix.py", line 224, in <module>
sys.exit(main(sys.argv))
File "/home/uke/oil/bin/oils_for_unix.py", line 199, in main
return AppBundleMain(argv)
File "/home/uke/oil/bin/oils_for_unix.py", line 143, in AppBundleMain
return shell.Main('ysh', arg_r, environ, login_shell, loader, readline)
File "/home/uke/oil/core/shell.py", line 919, in Main
cmd_flags=cmd_eval.IsMainProgram)
File "/home/uke/oil/core/main_loop.py", line 348, in Batch
is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags=cmd_flags)
File "/home/uke/oil/osh/cmd_eval.py", line 1811, in ExecuteAndCatch
status = self._Execute(node)
File "/home/uke/oil/osh/cmd_eval.py", line 1636, in _Execute
status = self._Dispatch(node, cmd_st)
File "/home/uke/oil/osh/cmd_eval.py", line 699, in _Dispatch
allow_assign=True)
File "/home/uke/oil/osh/word_eval.py", line 2138, in EvalWordSequence2
return self.SimpleEvalWordSequence2(words, allow_assign)
File "/home/uke/oil/osh/word_eval.py", line 2098, in SimpleEvalWordSequence2
self._EvalWordToParts(w, part_vals, 0) # not quoted
File "/home/uke/oil/osh/word_eval.py", line 1696, in _EvalWordToParts
self._EvalWordPart(p, word_part_vals, eval_flags)
File "/home/uke/oil/osh/word_eval.py", line 1612, in _EvalWordPart
self._EvalBracedVarSub(part, part_vals, quoted)
File "/home/uke/oil/osh/word_eval.py", line 1354, in _EvalBracedVarSub
vtest_place, part.token):
File "/home/uke/oil/osh/word_eval.py", line 615, in _ApplyTestOp
raise NotImplementedError(val.tag())
NotImplementedError: 9
|
| ysh | 2 Shell ${a[0]} with Oil values (issue #1092) [ysh status] Expected 0, got 2 stdout: stderr: echo first ${a[0]}
^
[ stdin ]:2: POSIX shell arithmetic isn't allowed (parse_sh_arith)
|
| ysh | 3 Splice nested List [ysh status] Expected 0, got 3 stdout: stderr: @mylist ^~~~~~~ [ stdin ]:3: fatal: Invalid type value.Dict: Splice expected Null, Bool, Int, Float, Eggex |
| ysh | 4 Splice nested Dict [ysh status] Expected 0, got 3 stdout: stderr: echo ${d[@]}
^~~~
[ stdin ]:2: fatal: Can't expand value.Dict into word
|
| ysh | 5 Concatenate shell arrays and ${#a} [ysh stdout] Expected '', got 'len a 1\nlen b 1\na = (Cell exported:F readonly:F nameref:F val:(value.MaybeStrArray strs:[a]))\nc = (Cell exported:F readonly:F nameref:F val:(value.MaybeStrArray strs:[a b]))\n2\n' stdout: len a 1 len b 1 a = (Cell exported:F readonly:F nameref:F val:(value.MaybeStrArray strs:[a])) c = (Cell exported:F readonly:F nameref:F val:(value.MaybeStrArray strs:[a b])) 2stderr: |