Results for interactive.test.sh

statusbashosh
pass 1216
ok 20
N-I 20
total1616
casebashoshdescription
0pass pass 'exit' in oshrc (regression)
1pass pass fatal errors continue
2pass pass interactive shell loads rcfile (when combined with -c)
3pass pass --rcfile with parse error - shell is executed anyway
4N-I pass interactive shell loads files in rcdir (when combined with -c)
details
5N-I pass nonexistent --rcdir is ignored
details
6ok pass shell doesn't load rcfile/rcdir if --norc is given
details
7pass pass interactive shell runs PROMPT_COMMAND after each command
8pass pass parse error in PROMPT_COMMAND
9pass pass runtime error in PROMPT_COMMAND
10pass pass Error message with bad oshrc file (currently ignored)
11pass pass PROMPT_COMMAND can see $?, like bash
12ok pass PROMPT_COMMAND that writes to BASH_REMATCH
details
13pass pass NO ASSERTIONS: Are startup files sourced before or after job control?
14pass pass HISTFILE is written in interactive shell
15pass pass HISTFILE default value
28 passed, 2 OK, 2 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped

Details on runs that didn't PASS

bash4 interactive shell loads files in rcdir (when combined with -c)

stdout:
A
stderr:
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
bash5 nonexistent --rcdir is ignored

stdout:
stderr: 
bash6 shell doesn't load rcfile/rcdir if --norc is given

stdout:
A
C
stderr:
bash12 PROMPT_COMMAND that writes to BASH_REMATCH

stdout:
---
one
---
---
clo c l o
---
^D
stderr:
bash: cannot set terminal process group (15335): Inappropriate ioctl for device
bash: no job control in this shell
PROMPT_COMMAND='[[ clobber =~ (.)(.)(.) ]]; echo ---'
echo one
[[ bar =~ (.)(.)(.) ]]
echo ${BASH_REMATCH[@]}
exit