status | dash | bash | mksh | zsh | osh | |
pass | 7 | 8 | 6 | 7 | 4 | |
ok | 1 | 0 | 0 | 1 | 0 | |
N-I | 1 | 1 | 2 | 1 | 4 | |
BUG | 0 | 0 | 1 | 0 | 0 | |
FAIL | 0 | 0 | 0 | 0 | 1 | |
total | 9 | 9 | 9 | 9 | 9 | |
case | dash | bash | mksh | zsh | osh | description |
0 | pass | pass | pass | pass | pass | ${##} |
1 | pass | pass | pass | pass | N-I | ${###} |
details | ||||||
2 | pass | pass | pass | pass | N-I | ${####} |
details | ||||||
3 | pass | pass | pass | pass | N-I | ${##2} |
details | ||||||
4 | pass | pass | BUG | pass | N-I | ${###2} |
details | details | |||||
5 | pass | pass | pass | pass | pass | ${1####} |
6 | pass | pass | pass | pass | pass | ${1#'###'} |
7 | ok | N-I | N-I | ok | pass | ${#1#'###'} |
details | details | details | details | |||
8 | N-I | pass | N-I | N-I | FAIL | Julia example from spec/oil-user-feedback |
details | details | details | details |
32 passed, 2 OK, 9 not implemented, 1 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
osh | 1 ${###} stdout: stderr: echo ${###} ^ [ stdin ]:2: Expected } after length expression |
osh | 2 ${####} stdout: stderr: echo ${####} ^~ [ stdin ]:2: Expected } after length expression |
osh | 3 ${##2} stdout: stderr: echo ${##2} ^ [ stdin ]:2: Expected } after length expression |
mksh | 4 ${###2} stdout: 25stderr: |
osh | 4 ${###2} stdout: stderr: echo ${###2} ^ [ stdin ]:2: Expected } after length expression |
dash | 7 ${#1#'###'} stdout: 4stderr: |
bash | 7 ${#1#'###'} stdout: stderr: bash: line 2: ${#1#'###'}: bad substitution |
mksh | 7 ${#1#'###'} stdout: stderr: mksh: <stdin>[2]: ${#1#"###"}: bad substitution |
zsh | 7 ${#1#'###'} stdout: 1stderr: |
dash | 8 Julia example from spec/oil-user-feedback stdout: stderr: |
mksh | 8 Julia example from spec/oil-user-feedback stdout: stderr: |
zsh | 8 Julia example from spec/oil-user-feedback stdout: stderr: |
osh | 8 Julia example from spec/oil-user-feedback [osh stdout] Expected 'git branch -D foo baz\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 202, in <module> sys.exit(main(sys.argv)) File "/home/uke/oil/bin/oils_for_unix.py", line 171, in main return AppBundleMain(argv) File "/home/uke/oil/bin/oils_for_unix.py", line 141, in AppBundleMain return shell.Main('osh', arg_r, environ, login_shell, loader, readline) File "/home/uke/oil/core/shell.py", line 1253, in Main cmd_flags=cmd_eval.IsMainProgram) File "/home/uke/oil/core/main_loop.py", line 336, in Batch was_parsed, status = Batch2(cmd_ev, c_parser, errfmt, cmd_flags=cmd_flags) File "/home/uke/oil/core/main_loop.py", line 401, in Batch2 is_return, is_fatal = cmd_ev.ExecuteAndCatch(node, cmd_flags) File "/home/uke/oil/osh/cmd_eval.py", line 2175, in ExecuteAndCatch status = self._Execute(node) File "/home/uke/oil/osh/cmd_eval.py", line 1974, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1837, in _Dispatch status = self._DoIf(node) File "/home/uke/oil/osh/cmd_eval.py", line 1485, in _DoIf b = self._EvalCondition(if_arm.cond, if_arm.keyword) File "/home/uke/oil/osh/cmd_eval.py", line 685, in _EvalCondition cond_status = self._ExecuteList(cond) File "/home/uke/oil/osh/cmd_eval.py", line 2051, in _ExecuteList status = self._Execute(child) File "/home/uke/oil/osh/cmd_eval.py", line 1974, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1719, in _Dispatch status = self._Execute(node.child) File "/home/uke/oil/osh/cmd_eval.py", line 1974, in _Execute status = self._Dispatch(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 1733, in _Dispatch result = self.bool_ev.EvalB(node.expr) File "/home/uke/oil/osh/sh_expr_eval.py", line 1231, in EvalB s1 = self._EvalCompoundWord(node.left) File "/home/uke/oil/osh/sh_expr_eval.py", line 1141, in _EvalCompoundWord val = self.word_ev.EvalWordToString(word, eval_flags) File "/home/uke/oil/osh/word_eval.py", line 2162, in EvalWordToString self._EvalWordPart(p, part_vals, 0) File "/home/uke/oil/osh/word_eval.py", line 1956, in _EvalWordPart self._EvalBracedVarSub(part, part_vals, quoted) File "/home/uke/oil/osh/word_eval.py", line 1668, in _EvalBracedVarSub n = self._Count(val, part.name_tok) File "/home/uke/oil/osh/word_eval.py", line 952, in _Count count = bash_impl.BashArray_Count(val) NameError: global name 'bash_impl' is not defined |