Results for interactive.test.sh

statusbashdashashzshmkshkshtoyshsushbrushosh
pass 00100000518
ok 1000000000
N-I 2000000000
FAIL 018151818181818130
TIME 15020000000
total18181818181818181818
casebashdashashzshmkshkshtoyshsushbrushoshdescription
0TIME FAIL pass FAIL FAIL FAIL FAIL FAIL FAIL pass 'exit' in oshrc (regression)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
1TIME FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass fatal errors continue
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
2TIME FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass interactive shell loads rcfile (when combined with -c)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
3TIME FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass --rcfile with parse error - shell is executed anyway
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
4N-I FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass interactive shell loads files in rcdir (when combined with -c)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
5N-I FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass nonexistent --rcdir is ignored
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
6ok FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass shell doesn't load rcfile/rcdir if --norc is given
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
7TIME FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass interactive shell runs PROMPT_COMMAND after each command
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
8TIME FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass parse error in PROMPT_COMMAND
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
9TIME FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass runtime error in PROMPT_COMMAND
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
10TIME FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass Error message with bad oshrc file (currently ignored)
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
11TIME FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass PROMPT_COMMAND can see $?, like bash
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
12TIME FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass PROMPT_COMMAND that writes to BASH_REMATCH
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
13TIME FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass pass NO ASSERTIONS: Are startup files sourced before or after job control?
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
14TIME FAIL TIME FAIL FAIL FAIL FAIL FAIL FAIL pass HISTFILE is written in interactive shell
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
15TIME FAIL TIME FAIL FAIL FAIL FAIL FAIL pass pass HISTFILE default value
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
16TIME FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass HISTFILE=my-history loads history from that file, and writes back to it
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
17TIME FAIL FAIL FAIL FAIL FAIL FAIL FAIL FAIL pass HISTFILE=my-history with history -a
detailsdetailsdetailsdetailsdetailsdetailsdetailsdetailsdetails
24 passed, 1 OK, 2 not implemented, 0 BUG, 136 failed, 17 timeouts, 0 cases skipped

Details on runs that didn't PASS

dash0 'exit' in oshrc (regression)

[dash stdout] Expected 'one\n', got ''
[dash status] Expected 42, got 2

stdout:
stderr: 
dash: 0: Illegal option --
zsh0 'exit' in oshrc (regression)

[zsh stdout] Expected 'one\n', got ''
[zsh status] Expected 42, got 1

stdout:
stderr: 
zsh: no such option: rcfile
mksh0 'exit' in oshrc (regression)

[mksh stdout] Expected 'one\n', got ''
[mksh status] Expected 42, got 1

stdout:
stderr: 
mksh: mksh: --: unknown option
ksh0 'exit' in oshrc (regression)

[ksh stdout] Expected 'one\n', got ''
[ksh status] Expected 42, got 1

stdout:
stderr: 
E: ksh: --: unknown option
toysh0 'exit' in oshrc (regression)

[toysh stdout] Expected 'one\n', got ''
[toysh status] Expected 42, got 1

stdout:
stderr: 
sh: Unknown option 'rcfile' (see "sh --help")
sush0 'exit' in oshrc (regression)

[sush stdout] Expected 'one\n', got ''
[sush status] Expected 42, got 2

stdout:
stderr: 
: line : set: --: invalid option
brush0 'exit' in oshrc (regression)

[brush stdout] Expected 'one\n', got 'one\nhello\n'
[brush status] Expected 42, got 0

stdout:
one
hello
stderr:
dash1 fatal errors continue

[dash stdout] Expected 'one\n', got ''
[dash status] Expected 42, got 2

stdout:
stderr: 
dash: 0: Illegal option --
ash1 fatal errors continue

[ash stdout] Expected 'one\n', got ''
[ash status] Expected 42, got 0

stdout:
stderr: 
zsh1 fatal errors continue

[zsh stdout] Expected 'one\n', got ''
[zsh status] Expected 42, got 1

stdout:
stderr: 
zsh: no such option: rcfile
mksh1 fatal errors continue

[mksh stdout] Expected 'one\n', got ''
[mksh status] Expected 42, got 1

stdout:
stderr: 
mksh: mksh: --: unknown option
ksh1 fatal errors continue

[ksh stdout] Expected 'one\n', got ''
[ksh status] Expected 42, got 1

stdout:
stderr: 
E: ksh: --: unknown option
toysh1 fatal errors continue

[toysh stdout] Expected 'one\n', got ''
[toysh status] Expected 42, got 1

stdout:
stderr: 
sh: Unknown option 'rcfile' (see "sh --help")
sush1 fatal errors continue

[sush stdout] Expected 'one\n', got ''
[sush status] Expected 42, got 2

stdout:
stderr: 
: line : set: --: invalid option
brush1 fatal errors continue

[brush stdout] Expected 'one\n', got ''
[brush status] Expected 42, got 1

stdout:
stderr: 
ERROR error: arithmetic evaluation error: division by zero
dash2 interactive shell loads rcfile (when combined with -c)

[dash stdout] Expected '1\nRCFILE\n2\n', got '1\n'
[dash status] Expected 0, got 2

stdout:
1
stderr:
dash: 0: Illegal option --
ash2 interactive shell loads rcfile (when combined with -c)

[ash stdout] Expected '1\nRCFILE\n2\n', got '1\nRCFILE\n'

stdout:
1
RCFILE
stderr:
zsh2 interactive shell loads rcfile (when combined with -c)

[zsh stdout] Expected '1\nRCFILE\n2\n', got '1\n'
[zsh status] Expected 0, got 1

stdout:
1
stderr:
zsh: no such option: rcfile
mksh2 interactive shell loads rcfile (when combined with -c)

[mksh stdout] Expected '1\nRCFILE\n2\n', got '1\n'
[mksh status] Expected 0, got 1

stdout:
1
stderr:
mksh: mksh: --: unknown option
ksh2 interactive shell loads rcfile (when combined with -c)

[ksh stdout] Expected '1\nRCFILE\n2\n', got '1\n'
[ksh status] Expected 0, got 1

stdout:
1
stderr:
E: ksh: --: unknown option
toysh2 interactive shell loads rcfile (when combined with -c)

[toysh stdout] Expected '1\nRCFILE\n2\n', got '1\n'
[toysh status] Expected 0, got 1

stdout:
1
stderr:
sh: Unknown option 'rcfile' (see "sh --help")
sush2 interactive shell loads rcfile (when combined with -c)

[sush stdout] Expected '1\nRCFILE\n2\n', got '1\n'
[sush status] Expected 0, got 2

stdout:
1
stderr:
: line : set: --: invalid option
dash3 --rcfile with parse error - shell is executed anyway

[dash stdout] Expected 'flag -c\nstatus=0\n', got 'status=2\n'

stdout:
status=2
stderr:
dash: 0: Illegal option --
ash3 --rcfile with parse error - shell is executed anyway

[ash stdout] Expected 'flag -c\nstatus=0\n', got 'status=2\n'

stdout:
status=2
stderr:
/home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/interactive.test.sh/03-ash/rcfile: line 2: syntax error: unexpected end of file (expecting ")")
zsh3 --rcfile with parse error - shell is executed anyway

[zsh stdout] Expected 'flag -c\nstatus=0\n', got 'status=1\n'

stdout:
status=1
stderr:
zsh: no such option: rcfile
mksh3 --rcfile with parse error - shell is executed anyway

[mksh stdout] Expected 'flag -c\nstatus=0\n', got 'status=1\n'

stdout:
status=1
stderr:
mksh: mksh: --: unknown option
ksh3 --rcfile with parse error - shell is executed anyway

[ksh stdout] Expected 'flag -c\nstatus=0\n', got 'status=1\n'

stdout:
status=1
stderr:
E: ksh: --: unknown option
toysh3 --rcfile with parse error - shell is executed anyway

[toysh stdout] Expected 'flag -c\nstatus=0\n', got 'status=1\n'

stdout:
status=1
stderr:
sh: Unknown option 'rcfile' (see "sh --help")
sush3 --rcfile with parse error - shell is executed anyway

[sush stdout] Expected 'flag -c\nstatus=0\n', got 'status=2\n'

stdout:
status=2
stderr:
: line : set: --: invalid option
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
dash4 interactive shell loads files in rcdir (when combined with -c)

[dash stdout] Expected 'A\nrcdir 1\nrcdir 2\nB\nrcfile first\nrcdir 1\nrcdir 2\nC\n' Got 'A\n'
[dash status] Expected 0, got 2

stdout:
A
stderr:
dash: 0: Illegal option --
dash: 0: Illegal option --
ash4 interactive shell loads files in rcdir (when combined with -c)

[ash stdout] Expected 'A\nrcdir 1\nrcdir 2\nB\nrcfile first\nrcdir 1\nrcdir 2\nC\n' Got 'A\nrcfile first\n'

stdout:
A
rcfile first
stderr:
zsh4 interactive shell loads files in rcdir (when combined with -c)

[zsh stdout] Expected 'A\nrcdir 1\nrcdir 2\nB\nrcfile first\nrcdir 1\nrcdir 2\nC\n' Got 'A\n'
[zsh status] Expected 0, got 1

stdout:
A
stderr:
zsh: no such option: rcdir
zsh: no such option: rcfile
mksh4 interactive shell loads files in rcdir (when combined with -c)

[mksh stdout] Expected 'A\nrcdir 1\nrcdir 2\nB\nrcfile first\nrcdir 1\nrcdir 2\nC\n' Got 'A\n'
[mksh status] Expected 0, got 1

stdout:
A
stderr:
mksh: mksh: --: unknown option
mksh: mksh: --: unknown option
ksh4 interactive shell loads files in rcdir (when combined with -c)

[ksh stdout] Expected 'A\nrcdir 1\nrcdir 2\nB\nrcfile first\nrcdir 1\nrcdir 2\nC\n' Got 'A\n'
[ksh status] Expected 0, got 1

stdout:
A
stderr:
E: ksh: --: unknown option
E: ksh: --: unknown option
toysh4 interactive shell loads files in rcdir (when combined with -c)

[toysh stdout] Expected 'A\nrcdir 1\nrcdir 2\nB\nrcfile first\nrcdir 1\nrcdir 2\nC\n' Got 'A\n'
[toysh status] Expected 0, got 1

stdout:
A
stderr:
sh: Unknown option 'rcdir' (see "sh --help")
sh: Unknown option 'rcfile' (see "sh --help")
sush4 interactive shell loads files in rcdir (when combined with -c)

[sush stdout] Expected 'A\nrcdir 1\nrcdir 2\nB\nrcfile first\nrcdir 1\nrcdir 2\nC\n' Got 'A\n'
[sush status] Expected 0, got 2

stdout:
A
stderr:
: line : set: --: invalid option
: line : set: --: invalid option
brush4 interactive shell loads files in rcdir (when combined with -c)

[brush stdout] Expected 'A\nrcdir 1\nrcdir 2\nB\nrcfile first\nrcdir 1\nrcdir 2\nC\n' Got 'A\n'

stdout:
A
stderr:
ERROR error: failed to source file: --rcdir; i/o error: No such file or directory (os error 2)
ERROR error: failed to source file: --rcdir; i/o error: No such file or directory (os error 2)
bash5 nonexistent --rcdir is ignored

stdout:
stderr: 
dash5 nonexistent --rcdir is ignored

[dash stdout] Expected 'hi\nstatus=0\n', got 'status=2\n'

stdout:
status=2
stderr:
dash: 0: Illegal option --
ash5 nonexistent --rcdir is ignored

[ash stdout] Expected 'hi\nstatus=0\n', got 'status=2\n'

stdout:
status=2
stderr:
ash: can't open '/home/andy/git/oils-for-unix/oils/_tmp/spec-tmp/interactive.test.sh/05-ash/__does-not-exist': No such file or directory
zsh5 nonexistent --rcdir is ignored

[zsh stdout] Expected 'hi\nstatus=0\n', got 'status=1\n'

stdout:
status=1
stderr:
zsh: no such option: rcdir
mksh5 nonexistent --rcdir is ignored

[mksh stdout] Expected 'hi\nstatus=0\n', got 'status=1\n'

stdout:
status=1
stderr:
mksh: mksh: --: unknown option
ksh5 nonexistent --rcdir is ignored

[ksh stdout] Expected 'hi\nstatus=0\n', got 'status=1\n'

stdout:
status=1
stderr:
E: ksh: --: unknown option
toysh5 nonexistent --rcdir is ignored

[toysh stdout] Expected 'hi\nstatus=0\n', got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush5 nonexistent --rcdir is ignored

[sush stdout] Expected 'hi\nstatus=0\n', got 'status=2\n'

stdout:
status=2
stderr:
: line : set: --: invalid option
brush5 nonexistent --rcdir is ignored

[brush stdout] Expected 'hi\nstatus=0\n', got 'status=1\n'

stdout:
status=1
stderr:
ERROR error: failed to source file: --rcdir; i/o error: No such file or directory (os error 2)
bash6 shell doesn't load rcfile/rcdir if --norc is given

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

[dash stdout] Expected 'A\nC\nD\n', got 'A\n'
[dash status] Expected 0, got 2

stdout:
A
stderr:
dash: 0: Illegal option --
dash: 0: Illegal option --
ash6 shell doesn't load rcfile/rcdir if --norc is given

[ash stdout] Expected 'A\nC\nD\n', got 'A\nrcfile\nrcfile\n'

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

[zsh stdout] Expected 'A\nC\nD\n', got 'A\n'
[zsh status] Expected 0, got 1

stdout:
A
stderr:
zsh: no such option: norc
zsh: no such option: norc
mksh6 shell doesn't load rcfile/rcdir if --norc is given

[mksh stdout] Expected 'A\nC\nD\n', got 'A\n'
[mksh status] Expected 0, got 1

stdout:
A
stderr:
mksh: mksh: --: unknown option
mksh: mksh: --: unknown option
ksh6 shell doesn't load rcfile/rcdir if --norc is given

[ksh stdout] Expected 'A\nC\nD\n', got 'A\n'
[ksh status] Expected 0, got 1

stdout:
A
stderr:
E: ksh: --: unknown option
E: ksh: --: unknown option
toysh6 shell doesn't load rcfile/rcdir if --norc is given

[toysh stdout] Expected 'A\nC\nD\n', got 'A\n'
[toysh status] Expected 0, got -6

stdout:
A
stderr:
sh: Unknown option 'rcfile' (see "sh --help")
munmap_chunk(): invalid pointer
sush6 shell doesn't load rcfile/rcdir if --norc is given

[sush stdout] Expected 'A\nC\nD\n', got 'A\n'
[sush status] Expected 0, got 2

stdout:
A
stderr:
: line : -r: invalid option name
: line : -r: invalid option name
brush6 shell doesn't load rcfile/rcdir if --norc is given

[brush stdout] Expected 'A\nC\nD\n', got 'A\nC\n'

stdout:
A
C
stderr:
ERROR error: failed to source file: --rcdir; i/o error: No such file or directory (os error 2)
dash7 interactive shell runs PROMPT_COMMAND after each command

[dash stdout] Expected 'PROMPT\none\nPROMPT\ntwo\nPROMPT\n^D\n', got ''

stdout:
stderr: 
ash7 interactive shell runs PROMPT_COMMAND after each command

[ash stdout] Expected 'PROMPT\none\nPROMPT\ntwo\nPROMPT\n^D\n', got ''

stdout:
stderr: 
zsh7 interactive shell runs PROMPT_COMMAND after each command

[zsh stdout] Expected 'PROMPT\none\nPROMPT\ntwo\nPROMPT\n^D\n', got ''

stdout:
stderr: 
mksh7 interactive shell runs PROMPT_COMMAND after each command

[mksh stdout] Expected 'PROMPT\none\nPROMPT\ntwo\nPROMPT\n^D\n', got ''

stdout:
stderr: 
ksh7 interactive shell runs PROMPT_COMMAND after each command

[ksh stdout] Expected 'PROMPT\none\nPROMPT\ntwo\nPROMPT\n^D\n', got ''

stdout:
stderr: 
toysh7 interactive shell runs PROMPT_COMMAND after each command

[toysh stdout] Expected 'PROMPT\none\nPROMPT\ntwo\nPROMPT\n^D\n', got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush7 interactive shell runs PROMPT_COMMAND after each command

[sush stdout] Expected 'PROMPT\none\nPROMPT\ntwo\nPROMPT\n^D\n', got ''

stdout:
stderr: 
brush7 interactive shell runs PROMPT_COMMAND after each command

[brush stdout] Expected 'PROMPT\none\nPROMPT\ntwo\nPROMPT\n^D\n', got ''

stdout:
stderr: 
dash8 parse error in PROMPT_COMMAND

[dash stdout] Expected 'one\ntwo\n^D\n', got ''

stdout:
stderr: 
ash8 parse error in PROMPT_COMMAND

[ash stdout] Expected 'one\ntwo\n^D\n', got ''

stdout:
stderr: 
zsh8 parse error in PROMPT_COMMAND

[zsh stdout] Expected 'one\ntwo\n^D\n', got ''

stdout:
stderr: 
mksh8 parse error in PROMPT_COMMAND

[mksh stdout] Expected 'one\ntwo\n^D\n', got ''

stdout:
stderr: 
ksh8 parse error in PROMPT_COMMAND

[ksh stdout] Expected 'one\ntwo\n^D\n', got ''

stdout:
stderr: 
toysh8 parse error in PROMPT_COMMAND

[toysh stdout] Expected 'one\ntwo\n^D\n', got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush8 parse error in PROMPT_COMMAND

[sush stdout] Expected 'one\ntwo\n^D\n', got ''

stdout:
stderr: 
brush8 parse error in PROMPT_COMMAND

[brush stdout] Expected 'one\ntwo\n^D\n', got ''

stdout:
stderr: 
dash9 runtime error in PROMPT_COMMAND

[dash stdout] Expected 'one\ntwo\n^D\n', got ''

stdout:
stderr: 
ash9 runtime error in PROMPT_COMMAND

[ash stdout] Expected 'one\ntwo\n^D\n', got ''

stdout:
stderr: 
zsh9 runtime error in PROMPT_COMMAND

[zsh stdout] Expected 'one\ntwo\n^D\n', got ''

stdout:
stderr: 
mksh9 runtime error in PROMPT_COMMAND

[mksh stdout] Expected 'one\ntwo\n^D\n', got ''

stdout:
stderr: 
ksh9 runtime error in PROMPT_COMMAND

[ksh stdout] Expected 'one\ntwo\n^D\n', got ''

stdout:
stderr: 
toysh9 runtime error in PROMPT_COMMAND

[toysh stdout] Expected 'one\ntwo\n^D\n', got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush9 runtime error in PROMPT_COMMAND

[sush stdout] Expected 'one\ntwo\n^D\n', got ''

stdout:
stderr: 
brush9 runtime error in PROMPT_COMMAND

[brush stdout] Expected 'one\ntwo\n^D\n', got ''

stdout:
stderr: 
dash10 Error message with bad oshrc file (currently ignored)

[dash stdout] Expected 'hi\nstatus=0\nbad_oshrc:\n', got 'status=2\n'
[dash status] Expected 0, got 1

stdout:
status=2
stderr:
ash10 Error message with bad oshrc file (currently ignored)

[ash stdout] Expected 'hi\nstatus=0\nbad_oshrc:\n', got 'status=2\nbad_oshrc:\n'

stdout:
status=2
bad_oshrc:
stderr:
zsh10 Error message with bad oshrc file (currently ignored)

[zsh stdout] Expected 'hi\nstatus=0\nbad_oshrc:\n', got 'status=1\n'
[zsh status] Expected 0, got 1

stdout:
status=1
stderr:
mksh10 Error message with bad oshrc file (currently ignored)

[mksh stdout] Expected 'hi\nstatus=0\nbad_oshrc:\n', got 'status=1\n'
[mksh status] Expected 0, got 1

stdout:
status=1
stderr:
ksh10 Error message with bad oshrc file (currently ignored)

[ksh stdout] Expected 'hi\nstatus=0\nbad_oshrc:\n', got 'status=1\n'
[ksh status] Expected 0, got 1

stdout:
status=1
stderr:
toysh10 Error message with bad oshrc file (currently ignored)

[toysh stdout] Expected 'hi\nstatus=0\nbad_oshrc:\n', got 'status=1\n'
[toysh status] Expected 0, got 1

stdout:
status=1
stderr:
sush10 Error message with bad oshrc file (currently ignored)

[sush stdout] Expected 'hi\nstatus=0\nbad_oshrc:\n', got 'status=2\n'
[sush status] Expected 0, got 1

stdout:
status=2
stderr:
dash11 PROMPT_COMMAND can see $?, like bash

[dash stdout] Expected 'last_status=0\nlast_status=42\nlast_status=43\nok\nlast_status=0\n^D\n' Got ''

stdout:
stderr: 
ash11 PROMPT_COMMAND can see $?, like bash

[ash stdout] Expected 'last_status=0\nlast_status=42\nlast_status=43\nok\nlast_status=0\n^D\n' Got ''

stdout:
stderr: 
zsh11 PROMPT_COMMAND can see $?, like bash

[zsh stdout] Expected 'last_status=0\nlast_status=42\nlast_status=43\nok\nlast_status=0\n^D\n' Got ''

stdout:
stderr: 
mksh11 PROMPT_COMMAND can see $?, like bash

[mksh stdout] Expected 'last_status=0\nlast_status=42\nlast_status=43\nok\nlast_status=0\n^D\n' Got ''

stdout:
stderr: 
ksh11 PROMPT_COMMAND can see $?, like bash

[ksh stdout] Expected 'last_status=0\nlast_status=42\nlast_status=43\nok\nlast_status=0\n^D\n' Got ''

stdout:
stderr: 
toysh11 PROMPT_COMMAND can see $?, like bash

[toysh stdout] Expected 'last_status=0\nlast_status=42\nlast_status=43\nok\nlast_status=0\n^D\n' Got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush11 PROMPT_COMMAND can see $?, like bash

[sush stdout] Expected 'last_status=0\nlast_status=42\nlast_status=43\nok\nlast_status=0\n^D\n' Got ''

stdout:
stderr: 
brush11 PROMPT_COMMAND can see $?, like bash

[brush stdout] Expected 'last_status=0\nlast_status=42\nlast_status=43\nok\nlast_status=0\n^D\n' Got ''

stdout:
stderr: 
dash12 PROMPT_COMMAND that writes to BASH_REMATCH

[dash stdout] Expected '---\none\n---\n---\nbar b a r\n---\n^D\n', got ''

stdout:
stderr: 
ash12 PROMPT_COMMAND that writes to BASH_REMATCH

[ash stdout] Expected '---\none\n---\n---\nbar b a r\n---\n^D\n', got ''

stdout:
stderr: 
zsh12 PROMPT_COMMAND that writes to BASH_REMATCH

[zsh stdout] Expected '---\none\n---\n---\nbar b a r\n---\n^D\n', got ''

stdout:
stderr: 
mksh12 PROMPT_COMMAND that writes to BASH_REMATCH

[mksh stdout] Expected '---\none\n---\n---\nbar b a r\n---\n^D\n', got ''

stdout:
stderr: 
ksh12 PROMPT_COMMAND that writes to BASH_REMATCH

[ksh stdout] Expected '---\none\n---\n---\nbar b a r\n---\n^D\n', got ''

stdout:
stderr: 
toysh12 PROMPT_COMMAND that writes to BASH_REMATCH

[toysh stdout] Expected '---\none\n---\n---\nbar b a r\n---\n^D\n', got ''
[toysh status] Expected 0, got -6

stdout:
stderr: 
munmap_chunk(): invalid pointer
sush12 PROMPT_COMMAND that writes to BASH_REMATCH

[sush stdout] Expected '---\none\n---\n---\nbar b a r\n---\n^D\n', got ''

stdout:
stderr: 
brush12 PROMPT_COMMAND that writes to BASH_REMATCH

[brush stdout] Expected '---\none\n---\n---\nbar b a r\n---\n^D\n', got ''

stdout:
stderr: 
dash13 NO ASSERTIONS: Are startup files sourced before or after job control?

[dash status] Expected 0, got 2

stdout:
stderr: 
dash: 0: Illegal option --
ash13 NO ASSERTIONS: Are startup files sourced before or after job control?

[ash status] Expected 0, got 2

stdout:
stderr: 
myrc: line 4: syntax error: bad function name
zsh13 NO ASSERTIONS: Are startup files sourced before or after job control?

[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: no such option: rcfile
mksh13 NO ASSERTIONS: Are startup files sourced before or after job control?

[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: mksh: --: unknown option
ksh13 NO ASSERTIONS: Are startup files sourced before or after job control?

[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: --: unknown option
toysh13 NO ASSERTIONS: Are startup files sourced before or after job control?

[toysh status] Expected 0, got 1

stdout:
stderr: 
sh: Unknown option 'rcfile' (see "sh --help")
sush13 NO ASSERTIONS: Are startup files sourced before or after job control?

[sush status] Expected 0, got 2

stdout:
stderr: 
: line : set: --: invalid option
dash14 HISTFILE is written in interactive shell

[dash stdout] Expected 'hist1\nhist2\n^D\necho hist1; echo hist2\n', got ''
[dash status] Expected 0, got 1

stdout:
stderr: 
dash: 0: Illegal option --
cat: myhist: No such file or directory
zsh14 HISTFILE is written in interactive shell

[zsh stdout] Expected 'hist1\nhist2\n^D\necho hist1; echo hist2\n', got ''
[zsh status] Expected 0, got 1

stdout:
stderr: 
zsh: no such option: norc
cat: myhist: No such file or directory
mksh14 HISTFILE is written in interactive shell

[mksh stdout] Expected 'hist1\nhist2\n^D\necho hist1; echo hist2\n', got ''
[mksh status] Expected 0, got 1

stdout:
stderr: 
mksh: mksh: --: unknown option
mksh: <stdin>[9]: cat: myhist: No such file or directory
ksh14 HISTFILE is written in interactive shell

[ksh stdout] Expected 'hist1\nhist2\n^D\necho hist1; echo hist2\n', got ''
[ksh status] Expected 0, got 1

stdout:
stderr: 
E: ksh: --: unknown option
cat: myhist: No such file or directory
toysh14 HISTFILE is written in interactive shell

[toysh stdout] Expected 'hist1\nhist2\n^D\necho hist1; echo hist2\n', got 'hist1\nhist2\n'
[toysh status] Expected 0, got 1

stdout:
hist1
hist2
stderr:
$ $ cat: myhist: No such file or directory
sush14 HISTFILE is written in interactive shell

[sush stdout] Expected 'hist1\nhist2\n^D\necho hist1; echo hist2\n', got '^D\n'
[sush status] Expected 0, got 1

stdout:
^D
stderr:
: line : -r: invalid option name
cat: myhist: No such file or directory
brush14 HISTFILE is written in interactive shell

[brush stdout] Expected 'hist1\nhist2\n^D\necho hist1; echo hist2\n', got 'hist1\nhist2\n^D\n'

stdout:
hist1
hist2
^D
stderr:
exit
cat: myhist: No such file or directory
dash15 HISTFILE default value

[dash stdout] Expected 'status=0\n', got 'status=1\n'

stdout:
status=1
stderr:
dash: 0: Illegal option --
zsh15 HISTFILE default value

[zsh stdout] Expected 'status=0\n', got 'status=1\n'

stdout:
status=1
stderr:
zsh: no such option: norc
mksh15 HISTFILE default value

[mksh stdout] Expected 'status=0\n', got 'status=1\n'

stdout:
status=1
stderr:
mksh: mksh: --: unknown option
ksh15 HISTFILE default value

[ksh stdout] Expected 'status=0\n', got 'status=1\n'

stdout:
status=1
stderr:
E: ksh: --: unknown option
toysh15 HISTFILE default value

[toysh stdout] Expected 'status=0\n', got 'status=1\n'

stdout:
status=1
stderr:
sush15 HISTFILE default value

[sush stdout] Expected 'status=0\n', got 'status=1\n'

stdout:
status=1
stderr:
: line : -r: invalid option name
dash16 HISTFILE=my-history loads history from that file, and writes back to it

[dash stdout] Expected '2\n 1 echo 1\n 2 echo 2\n 3 history\n\n-- after shell exit --\necho 1\necho 2\nhistory\n' Got '\n-- after shell exit --\necho 1\n'

stdout:
-- after shell exit --
echo 1
stderr:
dash: 0: Illegal option --
ash16 HISTFILE=my-history loads history from that file, and writes back to it

[ash stdout] Expected '2\n 1 echo 1\n 2 echo 2\n 3 history\n\n-- after shell exit --\necho 1\necho 2\nhistory\n' Got '\n-- after shell exit --\necho 1\n'

stdout:
-- after shell exit --
echo 1
stderr:
zsh16 HISTFILE=my-history loads history from that file, and writes back to it

[zsh stdout] Expected '2\n 1 echo 1\n 2 echo 2\n 3 history\n\n-- after shell exit --\necho 1\necho 2\nhistory\n' Got '\n-- after shell exit --\necho 1\n'

stdout:
-- after shell exit --
echo 1
stderr:
zsh: no such option: rcfile
mksh16 HISTFILE=my-history loads history from that file, and writes back to it

[mksh stdout] Expected '2\n 1 echo 1\n 2 echo 2\n 3 history\n\n-- after shell exit --\necho 1\necho 2\nhistory\n' Got '\n-- after shell exit --\necho 1\n'

stdout:
-- after shell exit --
echo 1
stderr:
mksh: mksh: --: unknown option
ksh16 HISTFILE=my-history loads history from that file, and writes back to it

[ksh stdout] Expected '2\n 1 echo 1\n 2 echo 2\n 3 history\n\n-- after shell exit --\necho 1\necho 2\nhistory\n' Got '\n-- after shell exit --\necho 1\n'

stdout:
-- after shell exit --
echo 1
stderr:
E: ksh: --: unknown option
toysh16 HISTFILE=my-history loads history from that file, and writes back to it

[toysh stdout] Expected '2\n 1 echo 1\n 2 echo 2\n 3 history\n\n-- after shell exit --\necho 1\necho 2\nhistory\n' Got '\n-- after shell exit --\necho 1\n'

stdout:
-- after shell exit --
echo 1
stderr:
sh: Unknown option 'rcfile' (see "sh --help")
sush16 HISTFILE=my-history loads history from that file, and writes back to it

[sush stdout] Expected '2\n 1 echo 1\n 2 echo 2\n 3 history\n\n-- after shell exit --\necho 1\necho 2\nhistory\n' Got '\n-- after shell exit --\necho 1\n'

stdout:
-- after shell exit --
echo 1
stderr:
: line : set: --: invalid option
brush16 HISTFILE=my-history loads history from that file, and writes back to it

[brush stdout] Expected '2\n 1 echo 1\n 2 echo 2\n 3 history\n\n-- after shell exit --\necho 1\necho 2\nhistory\n' Got '2\n\n-- after shell exit --\necho 1\n'

stdout:
2

-- after shell exit --
echo 1
stderr:
 WARN unimplemented built-in: history 
exit
dash17 HISTFILE=my-history with history -a

[dash stdout] Expected '2\n\n-- after shell exit --\necho 1\nhistory -a\necho 2\n' Got '\n-- after shell exit --\necho 1\n'

stdout:
-- after shell exit --
echo 1
stderr:
dash: 0: Illegal option --
ash17 HISTFILE=my-history with history -a

[ash stdout] Expected '2\n\n-- after shell exit --\necho 1\nhistory -a\necho 2\n' Got '\n-- after shell exit --\necho 1\n'

stdout:
-- after shell exit --
echo 1
stderr:
zsh17 HISTFILE=my-history with history -a

[zsh stdout] Expected '2\n\n-- after shell exit --\necho 1\nhistory -a\necho 2\n' Got '\n-- after shell exit --\necho 1\n'

stdout:
-- after shell exit --
echo 1
stderr:
zsh: no such option: rcfile
mksh17 HISTFILE=my-history with history -a

[mksh stdout] Expected '2\n\n-- after shell exit --\necho 1\nhistory -a\necho 2\n' Got '\n-- after shell exit --\necho 1\n'

stdout:
-- after shell exit --
echo 1
stderr:
mksh: mksh: --: unknown option
ksh17 HISTFILE=my-history with history -a

[ksh stdout] Expected '2\n\n-- after shell exit --\necho 1\nhistory -a\necho 2\n' Got '\n-- after shell exit --\necho 1\n'

stdout:
-- after shell exit --
echo 1
stderr:
E: ksh: --: unknown option
toysh17 HISTFILE=my-history with history -a

[toysh stdout] Expected '2\n\n-- after shell exit --\necho 1\nhistory -a\necho 2\n' Got '\n-- after shell exit --\necho 1\n'

stdout:
-- after shell exit --
echo 1
stderr:
sh: Unknown option 'rcfile' (see "sh --help")
sush17 HISTFILE=my-history with history -a

[sush stdout] Expected '2\n\n-- after shell exit --\necho 1\nhistory -a\necho 2\n' Got '\n-- after shell exit --\necho 1\n'

stdout:
-- after shell exit --
echo 1
stderr:
: line : set: --: invalid option
brush17 HISTFILE=my-history with history -a

[brush stdout] Expected '2\n\n-- after shell exit --\necho 1\nhistory -a\necho 2\n' Got '2\n\n-- after shell exit --\necho 1\n'

stdout:
2

-- after shell exit --
echo 1
stderr:
 WARN unimplemented built-in: history -a
exit