Results for ysh-with-sh.test.sh

statusysh
FAIL 6
total6
caseyshdescription
0FAIL Shell Append += with Oil Values (issue #840)
details
1FAIL Shell ${x:-default} with Oil values (issue #954)
details
2FAIL Shell ${a[0]} with Oil values (issue #1092)
details
3FAIL Splice nested List
details
4FAIL Splice nested Dict
details
5FAIL 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

Details on runs that didn't PASS

ysh0 Shell Append += with Oil Values (issue #840)

[ysh stdout] Expected '', got 'g=2\n'
[ysh status] Expected 0, got 2

stdout:
g=2
stderr:
  g+=1
  ^~~
[ stdin ]:5: Use const or var/setvar to assign in YSH (parse_sh_assign)
ysh1 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
ysh2 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)
ysh3 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
ysh4 Splice nested Dict

[ysh status] Expected 0, got 3

stdout:
stderr: 
  echo ${d[@]}
  ^~~~
[ stdin ]:2: fatal: Can't expand value.Dict into word
ysh5 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]))
2
stderr: