Results for interactive.test.sh

statusbashosh
pass 1215
ok 20
N-I 20
FAIL 01
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 FAIL PROMPT_COMMAND that writes to BASH_REMATCH
detailsdetails
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
27 passed, 2 OK, 2 not implemented, 0 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

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 (15436): Inappropriate ioctl for device
bash: no job control in this shell
PROMPT_COMMAND='[[ clobber =~ (.)(.)(.) ]]; echo ---'
echo one
[[ bar =~ (.)(.)(.) ]]
echo ${BASH_REMATCH[@]}
exit
osh12 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