spec test index / oilshell.org
41 passed, 0 OK, 0 not implemented, 0 BUG, 4 failed, 0 timeouts, 0 cases skipped 4 failed under osh
| osh | 4 _start() and _end() [osh stdout] Expected 'start=3 end=6\nstart=3 end=6\n', got '' [osh status] Expected 0, got 1 [osh 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 146, in AppBundleMain
return shell.Main('osh', 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 1479, in _Dispatch
status = self._ExecuteList(if_arm.action)
File "/home/uke/oil/osh/cmd_eval.py", line 1716, in _ExecuteList
status = self._Execute(child)
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 1653, in _EvalWordPart
part_val = self.expr_ev.EvalExprSub(part)
File "/home/uke/oil/ysh/expr_eval.py", line 209, in EvalExprSub
val = self.EvalExpr(part.child, loc.Missing)
File "/home/uke/oil/ysh/expr_eval.py", line 235, in EvalExpr
val = self._EvalExpr(node)
File "/home/uke/oil/ysh/expr_eval.py", line 1293, in _EvalExpr
return self._EvalFuncCall(node)
File "/home/uke/oil/ysh/expr_eval.py", line 935, in _EvalFuncCall
ret = f(*pos_args)
File "/home/uke/oil/library/func_eggex.py", line 53, in __call__
raise NotImplementedError('_start')
NotImplementedError: _start
|
| osh | 13 Named captures with _match [osh stdout] Expected "['2020', '08']\n", got '' [osh status] Expected 0, got 3 stdout: stderr: argv.py $[_match('year')] $[_match('month')]
^~~~~~~
[ stdin ]:6: fatal: Type error in expression: Expected an integer, got 'year'
|
| osh | 15 Operator ~ assigns named variable [osh stdout] Expected '([[:digit:]]+)\nyes\nTODO MONTH\n', got '([[:digit:]]+)\nyes\n' [osh status] Expected 0, got 1 stdout: ([[:digit:]]+) yesstderr: = month
^~~~~
[ stdin ]:7: fatal: Undefined variable 'month'
|
| osh | 22 Match non-ASCII byte denoted using $'\xff' (TODO: LANG=C) [osh stdout] Expected ' 5b ff 5d 0a\nyes\nno\n', got '' [osh status] Expected 0, got 1 stdout: stderr: var pat = /[ $'\xff' ]/;
^~
[ stdin ]:2: fatal: Use unquoted char literal for byte 255, which is >= 128 (avoid confusing a set of bytes with a sequence)
|