spec test index / oilshell.org
status | bash | osh | |
pass | 11 | 15 | |
ok | 2 | 0 | |
N-I | 2 | 0 | |
total | 15 | 15 | |
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 | N-I | pass | interactive shell loads files in rcdir (when combined with -c) |
details | |||
4 | N-I | pass | nonexistent --rcdir is ignored |
details | |||
5 | ok | pass | shell doesn't load rcfile/rcdir if --norc is given |
details | |||
6 | pass | pass | interactive shell runs PROMPT_COMMAND after each command |
7 | pass | pass | parse error in PROMPT_COMMAND |
8 | pass | pass | runtime error in PROMPT_COMMAND |
9 | pass | pass | Error message with bad oshrc file (currently ignored) |
10 | pass | pass | PROMPT_COMMAND can see $?, like bash |
11 | ok | pass | PROMPT_COMMAND that writes to BASH_REMATCH |
details | |||
12 | pass | pass | NO ASSERTIONS: Are startup files sourced before or after job control? |
13 | pass | pass | HISTFILE is written in interactive shell |
14 | pass | pass | HISTFILE default value |
26 passed, 2 OK, 2 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
bash | 3 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) -abefhkmnptuvxBCHP 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) -abefhkmnptuvxBCHP or -o option |
bash | 4 nonexistent --rcdir is ignored stdout: stderr: |
bash | 5 shell doesn't load rcfile/rcdir if --norc is given stdout: A Cstderr: |
bash | 11 PROMPT_COMMAND that writes to BASH_REMATCH stdout: --- one --- --- clo c l o --- ^Dstderr: bash: cannot set terminal process group (8703): Inappropriate ioctl for device bash: no job control in this shell PROMPT_COMMAND='[[ clobber =~ (.)(.)(.) ]]; echo ---' echo one [[ bar =~ (.)(.)(.) ]] echo ${BASH_REMATCH[@]} exit |