spec test index / oilshell.org
status | bash | osh | osh_ALT | |
pass | 6 | 4 | 4 | |
FAIL | 0 | 2 | 2 | |
total | 6 | 6 | 6 | |
case | bash | osh | osh_ALT | description |
0 | pass | pass | pass | Lower Case with , and ,, |
1 | pass | pass | pass | Upper Case with ^ and ^^ |
2 | pass | FAIL | FAIL | Lower Case with constant string (VERY WEIRD) |
details | details | |||
3 | pass | FAIL | FAIL | Lower Case glob |
details | details | |||
4 | pass | pass | pass | ${x@Q} |
5 | pass | pass | pass | ${!prefix@} ${!prefix*} yields sorted array of var names |
14 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped 2 failed under osh
osh | 2 Lower Case with constant string (VERY WEIRD) [osh stdout] Expected 'aAA ABC DEF\naaa aBC DEF\n', got '' [osh status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 906, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 864, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 838, in AppBundleMain status = ShellMain('osh', argv0, main_argv, login_shell) File "/home/andy/git/oilshell/oil/bin/oil.py", line 656, in ShellMain status = main_loop.Batch(ex, c_parser, arena, nodes_out=nodes_out) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 163, in Batch is_return, is_fatal = ex.ExecuteAndCatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1591, in ExecuteAndCatch status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1538, in _Execute status, check_errexit = self._Dispatch(node, fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 847, in _Dispatch cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1475, in EvalWordSequence2 self._EvalWordToParts(w, False, part_vals) # not double quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1084, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 993, in _EvalWordPart self._EvalBracedVarSub(part, part_vals, quoted) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 793, in _EvalBracedVarSub val = self._ApplyUnarySuffixOp(val, part.suffix_op) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 521, in _ApplyUnarySuffixOp s = string_ops.DoUnarySuffixOp(val.s, op, arg_val.s) File "/home/andy/git/oilshell/oil/osh/string_ops.py", line 258, in DoUnarySuffixOp raise NotImplementedError("%s can't have an argument" % op.op_id) NotImplementedError: 224 can't have an argument |
osh_ALT | 2 Lower Case with constant string (VERY WEIRD) [osh_ALT stdout] Expected 'aAA ABC DEF\naaa aBC DEF\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 893, in _cpython_main_hook sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 864, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 838, in AppBundleMain status = ShellMain('osh', argv0, main_argv, login_shell) File "/home/andy/git/oilshell/oil/bin/oil.py", line 656, in ShellMain status = main_loop.Batch(ex, c_parser, arena, nodes_out=nodes_out) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 169, in Batch return status File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1591, in ExecuteAndCatch status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1538, in _Execute status, check_errexit = self._Dispatch(node, fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 894, in _Dispatch self.mem.PopTemp() File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1475, in EvalWordSequence2 self._EvalWordToParts(w, False, part_vals) # not double quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1084, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 993, in _EvalWordPart self._EvalBracedVarSub(part, part_vals, quoted) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 805, in _EvalBracedVarSub replace_str = replace_val.s File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 521, in _ApplyUnarySuffixOp s = string_ops.DoUnarySuffixOp(val.s, op, arg_val.s) File "/home/andy/git/oilshell/oil/osh/string_ops.py", line 258, in DoUnarySuffixOp raise NotImplementedError("%s can't have an argument" % op.op_id) NotImplementedError: 224 can't have an argument FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.7.pre9/_bin/osh' (1) Stripping the oil.ovm binary may cause this error. See https://github.com/oilshell/oil/issues/47 |
osh | 3 Lower Case glob [osh stdout] Expected 'ABC DEF\nABC deF\n', got '' [osh status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 906, in <module> sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 864, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 838, in AppBundleMain status = ShellMain('osh', argv0, main_argv, login_shell) File "/home/andy/git/oilshell/oil/bin/oil.py", line 656, in ShellMain status = main_loop.Batch(ex, c_parser, arena, nodes_out=nodes_out) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 163, in Batch is_return, is_fatal = ex.ExecuteAndCatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1591, in ExecuteAndCatch status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1538, in _Execute status, check_errexit = self._Dispatch(node, fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 847, in _Dispatch cmd_val = self.word_ev.EvalWordSequence2(words, allow_assign=True) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1475, in EvalWordSequence2 self._EvalWordToParts(w, False, part_vals) # not double quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1084, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 993, in _EvalWordPart self._EvalBracedVarSub(part, part_vals, quoted) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 793, in _EvalBracedVarSub val = self._ApplyUnarySuffixOp(val, part.suffix_op) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 521, in _ApplyUnarySuffixOp s = string_ops.DoUnarySuffixOp(val.s, op, arg_val.s) File "/home/andy/git/oilshell/oil/osh/string_ops.py", line 346, in DoUnarySuffixOp raise NotImplementedError("Can't use %s with pattern" % op.op_id) NotImplementedError: Can't use 224 with pattern |
osh_ALT | 3 Lower Case glob [osh_ALT stdout] Expected 'ABC DEF\nABC deF\n', got '' [osh_ALT status] Expected 0, got 1 stdout: stderr: Traceback (most recent call last): File "/home/andy/git/oilshell/oil/bin/oil.py", line 893, in _cpython_main_hook sys.exit(main(sys.argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 864, in main return AppBundleMain(argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 838, in AppBundleMain status = ShellMain('osh', argv0, main_argv, login_shell) File "/home/andy/git/oilshell/oil/bin/oil.py", line 656, in ShellMain status = main_loop.Batch(ex, c_parser, arena, nodes_out=nodes_out) File "/home/andy/git/oilshell/oil/core/main_loop.py", line 169, in Batch return status File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1591, in ExecuteAndCatch status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1538, in _Execute status, check_errexit = self._Dispatch(node, fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 894, in _Dispatch self.mem.PopTemp() File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1475, in EvalWordSequence2 self._EvalWordToParts(w, False, part_vals) # not double quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1084, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted, is_subst=is_subst) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 993, in _EvalWordPart self._EvalBracedVarSub(part, part_vals, quoted) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 805, in _EvalBracedVarSub replace_str = replace_val.s File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 521, in _ApplyUnarySuffixOp s = string_ops.DoUnarySuffixOp(val.s, op, arg_val.s) File "/home/andy/git/oilshell/oil/osh/string_ops.py", line 346, in DoUnarySuffixOp raise NotImplementedError("Can't use %s with pattern" % op.op_id) NotImplementedError: Can't use 224 with pattern FATAL: couldn't import from app bundle '/home/andy/git/oilshell/oil/_tmp/oil-tar-test/oil-0.7.pre9/_bin/osh' (1) Stripping the oil.ovm binary may cause this error. See https://github.com/oilshell/oil/issues/47 |