/home/uke/oil/bin/osh
18 passed, 0 OK, 0 not implemented, 0 BUG, 0 failed, 0 timeouts, 0 cases skipped
osh | 0 'exit' in oshrc (regression) stdout: onestderr: |
osh | 1 fatal errors continue stdout: onestderr: echo $(( 1 / 0 )) ^ [ -c flag ]:2: fatal: Divide by zero |
osh | 2 interactive shell loads rcfile (when combined with -c) stdout: 1 RCFILE 2stderr: |
osh | 3 --rcfile with parse error - shell is executed anyway stdout: flag -c status=0stderr: echo RCFILE; ( echo ^ /home/uke/oil/_tmp/spec-tmp/interactive.test.sh/03-osh/rcfile:1: Expected word type Id.Right_Subshell, got Id.Eof_Real |
osh | 4 interactive shell loads files in rcdir (when combined with -c) stdout: A rcdir 1 rcdir 2 B rcfile first rcdir 1 rcdir 2 Cstderr: |
osh | 5 nonexistent --rcdir is ignored stdout: hi status=0stderr: |
osh | 6 shell doesn't load rcfile/rcdir if --norc is given stdout: A C Dstderr: osh warning: --rcfile ignored in non-interactive shell osh warning: --rcfile ignored in non-interactive shell osh warning: --rcdir ignored in non-interactive shell |
osh | 7 interactive shell runs PROMPT_COMMAND after each command stdout: PROMPT one PROMPT two PROMPT ^Dstderr: |
osh | 8 parse error in PROMPT_COMMAND stdout: one two ^Dstderr: ; ^ [ var 'PROMPT_COMMAND' at ? ]:1: Invalid word while parsing command ; ^ [ var 'PROMPT_COMMAND' at ? ]:1: Invalid word while parsing command ; ^ [ var 'PROMPT_COMMAND' at ? ]:1: Invalid word while parsing command |
osh | 9 runtime error in PROMPT_COMMAND stdout: one two ^Dstderr: echo PROMPT $(( 1 / 0 )) ^ [ var 'PROMPT_COMMAND' at ? ]:1: fatal: Divide by zero echo PROMPT $(( 1 / 0 )) ^ [ var 'PROMPT_COMMAND' at ? ]:1: fatal: Divide by zero echo PROMPT $(( 1 / 0 )) ^ [ var 'PROMPT_COMMAND' at ? ]:1: fatal: Divide by zero |
osh | 10 Error message with bad oshrc file (currently ignored) stdout: hi status=0 bad_oshrc:stderr: |
osh | 11 PROMPT_COMMAND can see $?, like bash stdout: last_status=0 last_status=42 last_status=43 ok last_status=0 ^Dstderr: |
osh | 12 PROMPT_COMMAND that writes to BASH_REMATCH stdout: --- one --- --- bar b a r --- ^Dstderr: |
osh | 13 NO ASSERTIONS: Are startup files sourced before or after job control? stdout: myrc: pid = 896 PID PPID PGID SID TPGID COMMAND 896 893 690 1 1 python2 main: pid = 896 PID PPID PGID SID TPGID COMMAND 896 893 896 1 900 python2stderr: |
osh | 14 HISTFILE is written in interactive shell stdout: hist1 hist2 ^D echo hist1; echo hist2stderr: osh-0.32$ osh-0.32$ |
osh | 15 HISTFILE default value stdout: status=0stderr: |
osh | 16 HISTFILE=my-history loads history from that file, and writes back to it stdout: 2 1 echo 1 2 echo 2 3 history -- after shell exit -- echo 1 echo 2 historystderr: osh-0.32$ osh-0.32$ osh-0.32$ |
osh | 17 HISTFILE=my-history with history -a stdout: 2 -- after shell exit -- echo 1 history -a echo 2stderr: osh-0.32$ osh-0.32$ osh-0.32$ |