status | bash | osh | |
pass | 12 | 15 | |
ok | 2 | 0 | |
N-I | 2 | 0 | |
FAIL | 0 | 1 | |
total | 16 | 16 | |
case | bash | osh | description |
0 | pass | pass | 'exit' in oshrc (regression) |
1 | pass | pass | fatal errors continue |
2 | pass | pass | interactive shell loads rcfile (when combined with -c) |
3 | pass | pass | --rcfile with parse error - shell is executed anyway |
4 | N-I | pass | interactive shell loads files in rcdir (when combined with -c) |
details | |||
5 | N-I | pass | nonexistent --rcdir is ignored |
details | |||
6 | ok | pass | shell doesn't load rcfile/rcdir if --norc is given |
details | |||
7 | pass | pass | interactive shell runs PROMPT_COMMAND after each command |
8 | pass | pass | parse error in PROMPT_COMMAND |
9 | pass | pass | runtime error in PROMPT_COMMAND |
10 | pass | pass | Error message with bad oshrc file (currently ignored) |
11 | pass | pass | PROMPT_COMMAND can see $?, like bash |
12 | ok | FAIL | PROMPT_COMMAND that writes to BASH_REMATCH |
details | details | ||
13 | pass | pass | NO ASSERTIONS: Are startup files sourced before or after job control? |
14 | pass | pass | HISTFILE is written in interactive shell |
15 | pass | pass | HISTFILE default value |
27 passed, 2 OK, 2 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped 1 failed under osh
bash | 4 interactive shell loads files in rcdir (when combined with -c) stdout: Astderr: bash: --rcdir: invalid option Usage: bash [GNU long option] [option] ... bash [GNU long option] [option] script-file ... GNU long options: --debug --debugger --dump-po-strings --dump-strings --help --init-file --login --noediting --noprofile --norc --posix --pretty-print --rcfile --restricted --verbose --version Shell options: -ilrsD or -c command or -O shopt_option (invocation only) -abefhkmnptuvxBCEHPT or -o option bash: --rcdir: invalid option Usage: bash [GNU long option] [option] ... bash [GNU long option] [option] script-file ... GNU long options: --debug --debugger --dump-po-strings --dump-strings --help --init-file --login --noediting --noprofile --norc --posix --pretty-print --rcfile --restricted --verbose --version Shell options: -ilrsD or -c command or -O shopt_option (invocation only) -abefhkmnptuvxBCEHPT or -o option |
bash | 5 nonexistent --rcdir is ignored stdout: stderr: |
bash | 6 shell doesn't load rcfile/rcdir if --norc is given stdout: A Cstderr: |
bash | 12 PROMPT_COMMAND that writes to BASH_REMATCH stdout: --- one --- --- clo c l o --- ^Dstderr: bash: cannot set terminal process group (15436): Inappropriate ioctl for device bash: no job control in this shell PROMPT_COMMAND='[[ clobber =~ (.)(.)(.) ]]; echo ---' echo one [[ bar =~ (.)(.)(.) ]] echo ${BASH_REMATCH[@]} exit |
osh | 12 PROMPT_COMMAND that writes to BASH_REMATCH [osh stdout] Expected '---\none\n---\n---\nbar b a r\n---\n^D\n', got '---\none\n---\n---\n' [osh stderr] Found 'Traceback (most recent' stdout: --- one --- ---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 1173, in Main prompt_plugin, waiter, errfmt) File "/home/uke/oil/core/main_loop.py", line 280, in Interactive is_return, _ = cmd_ev.ExecuteAndCatch(node, 0) 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 1701, in _Dispatch status = self._DoSimple(node, cmd_st) File "/home/uke/oil/osh/cmd_eval.py", line 904, in _DoSimple allow_assign=True) File "/home/uke/oil/osh/word_eval.py", line 2566, in EvalWordSequence2 self._EvalWordToParts(w, part_vals, EXTGLOB_FILES) File "/home/uke/oil/osh/word_eval.py", line 2048, in _EvalWordToParts self._EvalWordPart(p, word_part_vals, eval_flags) 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 1750, in _EvalBracedVarSub part_val = _ValueToPartValue(val, quoted or quoted2, part) File "/home/uke/oil/osh/word_eval.py", line 231, in _ValueToPartValue bash_impl.InternalStringArray_GetValues(val), quoted) NameError: global name 'bash_impl' is not defined |