spec test index / oilshell.org
63 passed, 10 ok, 15 known unimplemented, 8 known bugs, 2 failed, 0 skipped
zsh | 1 Cannot take length of substring slice stdout: 3stderr: |
osh | 1 Cannot take length of substring slice stdout: stderr: Line 2 of '<stdin>' echo ${#v:1:3} ^ Expected } after length expression, got ':' |
osh_ALT | 1 Cannot take length of substring slice stdout: stderr: Line 2 of '<stdin>' echo ${#v:1:3} ^ Expected } after length expression, got ':' |
osh-byterun | 1 Cannot take length of substring slice stdout: stderr: Line 2 of '<stdin>' echo ${#v:1:3} ^ Expected } after length expression, got ':' |
mksh | 2 Out of range string slice: begin stdout: 0stderr: |
mksh | 3 Out of range string slice: length stdout: _defg 0stderr: |
osh | 4 String slice: negative begin stdout: stderr: osh warning: The start index of a string slice can't be negative: -4 |
osh_ALT | 4 String slice: negative begin stdout: stderr: osh warning: The start index of a string slice can't be negative: -4 |
osh-byterun | 4 String slice: negative begin stdout: stderr: osh warning: The start index of a string slice can't be negative: -4 |
mksh | 5 String slice: negative second arg is position, not length stdout: defg defg defgstderr: |
osh | 5 String slice: negative second arg is position, not length stdout: stderr: osh warning: The length of a string slice can't be negative: -1 osh warning: The length of a string slice can't be negative: -2 osh warning: The length of a string slice can't be negative: -3 |
osh_ALT | 5 String slice: negative second arg is position, not length stdout: stderr: osh warning: The length of a string slice can't be negative: -1 osh warning: The length of a string slice can't be negative: -2 osh warning: The length of a string slice can't be negative: -3 |
osh-byterun | 5 String slice: negative second arg is position, not length stdout: stderr: osh warning: The length of a string slice can't be negative: -1 osh warning: The length of a string slice can't be negative: -2 osh warning: The length of a string slice can't be negative: -3 |
bash | 6 strict-word-eval with string slice stdout: slice -bc-stderr: _tmp/spec-bin/bash: line 1: set: strict-word-eval: invalid option name |
mksh | 6 strict-word-eval with string slice stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: set: strict-word-eval: bad option |
zsh | 6 strict-word-eval with string slice stdout: stderr: set: no such option: strict-word-eval |
mksh | 8 Slice undefined stdout: -- -- -done-stderr: |
mksh | 9 Slice UTF-8 String stdout: -μstderr: |
bash | 10 Slice string with invalid UTF-8 results in empty string and warning stdout: -bcd-stderr: |
mksh | 10 Slice string with invalid UTF-8 results in empty string and warning stdout: -bcd-stderr: |
zsh | 10 Slice string with invalid UTF-8 results in empty string and warning stdout: -bcd-stderr: |
bash | 11 Slice string with invalid UTF-8 with strict-word-eval stdout: slice -bcd-stderr: _tmp/spec-bin/bash: line 1: set: strict-word-eval: invalid option name |
mksh | 11 Slice string with invalid UTF-8 with strict-word-eval stdout: stderr: _tmp/spec-bin/mksh: <stdin>[1]: set: strict-word-eval: bad option |
zsh | 11 Slice string with invalid UTF-8 with strict-word-eval stdout: stderr: set: no such option: strict-word-eval |
mksh | 12 Lower Case with , and ,, stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: ${x,}: bad substitution |
zsh | 12 Lower Case with , and ,, stdout: stderr: zsh: bad substitution |
mksh | 13 Upper Case with ^ and ^^ stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: ${x^}: bad substitution |
zsh | 13 Upper Case with ^ and ^^ stdout: stderr: zsh: bad substitution |
mksh | 14 Lower Case with constant string (VERY WEIRD) stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: ${x,A}: bad substitution |
zsh | 14 Lower Case with constant string (VERY WEIRD) stdout: stderr: zsh: bad substitution |
osh | 14 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 732, in <module> main(sys.argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 701, in main sys.exit(AppBundleMain(argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 675, in AppBundleMain status = ShellMain('osh', argv0, main_argv, login_shell) File "/home/andy/git/oilshell/oil/bin/oil.py", line 507, 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 124, in Batch is_control_flow, is_fatal = ex.ExecuteAndCatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1241, in ExecuteAndCatch status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1189, in _Execute status, check_errexit = self._Dispatch(node, fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 718, in _Dispatch argv = self.word_ev.EvalWordSequence(words) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1123, in EvalWordSequence return self._EvalWordSequence(words) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1096, in _EvalWordSequence self._EvalWordToParts(w, False, part_vals) # not double quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 897, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 860, in _EvalWordPart self._EvalBracedVarSub(part, part_vals, quoted) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 665, in _EvalBracedVarSub val = self._ApplyUnarySuffixOp(val, part.suffix_op) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 431, in _ApplyUnarySuffixOp s = string_ops.DoUnarySuffixOp(val.s, op, arg_val.s) File "/home/andy/git/oilshell/oil/osh/string_ops.py", line 186, in DoUnarySuffixOp raise NotImplementedError("%s can't have an argument" % op.op_id) NotImplementedError: <Id_t VOp1_Comma 131> can't have an argument |
osh_ALT | 14 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 719, in _cpython_main_hook main(sys.argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 701, in main sys.exit(AppBundleMain(argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 694, in AppBundleMain return readlink.main(main_argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 507, 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 131, in Batch return ex.LastStatus() File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1241, in ExecuteAndCatch status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1189, in _Execute status, check_errexit = self._Dispatch(node, fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1134, in _Dispatch libc.print_time(real, user, sys_) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1123, in EvalWordSequence return self._EvalWordSequence(words) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1096, in _EvalWordSequence self._EvalWordToParts(w, False, part_vals) # not double quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 897, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 860, in _EvalWordPart self._EvalBracedVarSub(part, part_vals, quoted) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 677, in _EvalBracedVarSub replace_str = replace_val.s File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 431, in _ApplyUnarySuffixOp s = string_ops.DoUnarySuffixOp(val.s, op, arg_val.s) File "/home/andy/git/oilshell/oil/osh/string_ops.py", line 259, in DoUnarySuffixOp return s NotImplementedError: <Id_t VOp1_Comma 131> can't have an argument FATAL: couldn't import from app bundle '_tmp/oil-tar-test/oil-0.6.pre15/_bin/osh' (1) Stripping the oil.ovm binary may cause this error. See https://github.com/oilshell/oil/issues/47 |
osh-byterun | 14 Lower Case with constant string (VERY WEIRD) [osh-byterun stdout] Expected 'aAA ABC DEF\naaa aBC DEF\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: FATAL: <Id_t VOp1_Comma 131> can't have an argument |
mksh | 15 Lower Case glob stdout: stderr: _tmp/spec-bin/mksh: <stdin>[2]: ${x,[d-f]}: bad substitution |
zsh | 15 Lower Case glob stdout: stderr: zsh: bad substitution |
osh | 15 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 732, in <module> main(sys.argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 701, in main sys.exit(AppBundleMain(argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 675, in AppBundleMain status = ShellMain('osh', argv0, main_argv, login_shell) File "/home/andy/git/oilshell/oil/bin/oil.py", line 507, 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 124, in Batch is_control_flow, is_fatal = ex.ExecuteAndCatch(node) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1241, in ExecuteAndCatch status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1189, in _Execute status, check_errexit = self._Dispatch(node, fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 718, in _Dispatch argv = self.word_ev.EvalWordSequence(words) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1123, in EvalWordSequence return self._EvalWordSequence(words) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1096, in _EvalWordSequence self._EvalWordToParts(w, False, part_vals) # not double quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 897, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 860, in _EvalWordPart self._EvalBracedVarSub(part, part_vals, quoted) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 665, in _EvalBracedVarSub val = self._ApplyUnarySuffixOp(val, part.suffix_op) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 431, in _ApplyUnarySuffixOp s = string_ops.DoUnarySuffixOp(val.s, op, arg_val.s) File "/home/andy/git/oilshell/oil/osh/string_ops.py", line 262, in DoUnarySuffixOp raise NotImplementedError("Can't use %s with pattern" % op.op_id) NotImplementedError: Can't use <Id_t VOp1_Comma 131> with pattern |
osh_ALT | 15 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 719, in _cpython_main_hook main(sys.argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 701, in main sys.exit(AppBundleMain(argv)) File "/home/andy/git/oilshell/oil/bin/oil.py", line 694, in AppBundleMain return readlink.main(main_argv) File "/home/andy/git/oilshell/oil/bin/oil.py", line 507, 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 131, in Batch return ex.LastStatus() File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1241, in ExecuteAndCatch status = self._Execute(node, fork_external=fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1189, in _Execute status, check_errexit = self._Dispatch(node, fork_external) File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1134, in _Dispatch libc.print_time(real, user, sys_) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1123, in EvalWordSequence return self._EvalWordSequence(words) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 1096, in _EvalWordSequence self._EvalWordToParts(w, False, part_vals) # not double quoted File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 897, in _EvalWordToParts self._EvalWordPart(p, part_vals, quoted=quoted) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 860, in _EvalWordPart self._EvalBracedVarSub(part, part_vals, quoted) File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 677, in _EvalBracedVarSub replace_str = replace_val.s File "/home/andy/git/oilshell/oil/osh/word_eval.py", line 431, in _ApplyUnarySuffixOp s = string_ops.DoUnarySuffixOp(val.s, op, arg_val.s) File "/home/andy/git/oilshell/oil/osh/string_ops.py", line 262, in DoUnarySuffixOp raise NotImplementedError("Can't use %s with pattern" % op.op_id) NotImplementedError: Can't use <Id_t VOp1_Comma 131> with pattern FATAL: couldn't import from app bundle '_tmp/oil-tar-test/oil-0.6.pre15/_bin/osh' (1) Stripping the oil.ovm binary may cause this error. See https://github.com/oilshell/oil/issues/47 |
osh-byterun | 15 Lower Case glob [osh-byterun stdout] Expected 'ABC DEF\nABC deF\n', got '' [osh-byterun status] Expected 0, got 1 stdout: stderr: FATAL: Can't use <Id_t VOp1_Comma 131> with pattern |
zsh | 16 ${x@Q} stdout: stderr: zsh: bad substitution |