Results for pipeline.test.sh

statusbashdashmkshzshosh
pass 2416211924
ok 11100
N-I 09351
BUG 10120
FAIL 00001
total2626262626
casebashdashmkshzshoshdescription
0pass pass pass pass pass Brace group in pipeline
1pass pass pass pass pass For loop starts pipeline
2pass pass pass pass pass While Loop ends pipeline
3pass pass pass BUG pass Redirect in Pipeline
details
4pass pass pass pass pass Pipeline comments
5pass pass pass pass pass Exit code is last status
6pass N-I BUG N-I pass Initial value of PIPESTATUS is empty string
detailsdetailsdetails
7pass N-I pass N-I pass PIPESTATUS
detailsdetails
8pass N-I pass N-I FAIL PIPESTATUS is set on simple commands
detailsdetailsdetails
9pass N-I pass N-I pass PIPESTATUS with shopt -s lastpipe
detailsdetails
10pass N-I N-I pass N-I |&
detailsdetailsdetails
11pass pass pass pass pass ! turns non-zero into zero
12pass pass pass pass pass ! turns zero into 1
13pass pass pass pass pass ! in if
14pass pass pass pass pass ! with ||
15pass pass pass pass pass ! with { }
16pass pass pass pass pass ! with ( )
17pass pass pass pass pass ! is not a command
18pass pass pass BUG pass Evaluation of argv[0] in pipeline occurs in child
details
19ok ok ok pass pass bash/dash/mksh run the last command is run in its own process
detailsdetailsdetails
20pass N-I N-I pass pass shopt -s lastpipe (always on in OSH)
detailsdetails
21pass N-I N-I pass pass shopt -s lastpipe (always on in OSH)
detailsdetails
22BUG N-I pass N-I pass SIGPIPE causes pipeline to die (regression for issue #295)
detailsdetailsdetails
23pass pass pass pass pass Nested pipelines
24pass pass pass pass pass Pipeline in eval
25pass N-I pass pass pass shopt -s lastpipe and shopt -s no_last_fork interaction
details
104 passed, 3 OK, 18 not implemented, 4 BUG, 1 failed, 0 timeouts, 0 cases skipped
1 failed under osh

Details on runs that didn't PASS

zsh3 Redirect in Pipeline

stdout:
1
stderr:
hi
dash6 Initial value of PIPESTATUS is empty string

stdout:
stderr: 
mksh6 Initial value of PIPESTATUS is empty string

stdout:
pipestatus 0
stderr:
zsh6 Initial value of PIPESTATUS is empty string

stdout:
stderr: 
dash7 PIPESTATUS

stdout:
stderr: 
dash: 5: Bad substitution
zsh7 PIPESTATUS

stdout:
stderr: 
dash8 PIPESTATUS is set on simple commands

stdout:
stderr: 
zsh8 PIPESTATUS is set on simple commands

stdout:
stderr: 
osh8 PIPESTATUS is set on simple commands

[osh stdout] Expected 'pipestatus 1\npipestatus 55 44\npipestatus 0\n' Got 'pipestatus\npipestatus 55 44\npipestatus 55 44\n'

stdout:
pipestatus
pipestatus 55 44
pipestatus 55 44
stderr:
dash9 PIPESTATUS with shopt -s lastpipe

stdout:
stderr: 
dash: 1: shopt: not found
dash: 6: Bad substitution
zsh9 PIPESTATUS with shopt -s lastpipe

stdout:
stderr: 
zsh: command not found: shopt
dash10 |&

stdout:
stderr: 
dash: 1: Syntax error: "&" unexpected
mksh10 |&

stdout:
stderr: 
STDERR
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
osh10 |&

stdout:
stderr: 
  stdout_stderr.py |& cat
                   ^~
[ stdin ]:1: fatal: |& isn't supported
zsh18 Evaluation of argv[0] in pipeline occurs in child

stdout:
1
cmd=echo
stderr:
bash19 bash/dash/mksh run the last command is run in its own process

stdout:
line=
stderr:
dash19 bash/dash/mksh run the last command is run in its own process

stdout:
line=
stderr:
mksh19 bash/dash/mksh run the last command is run in its own process

stdout:
line=
stderr:
dash20 shopt -s lastpipe (always on in OSH)

stdout:
line=
stderr:
dash: 1: shopt: not found
mksh20 shopt -s lastpipe (always on in OSH)

stdout:
line=
stderr:
mksh: <stdin>[1]: shopt: not found
dash21 shopt -s lastpipe (always on in OSH)

stdout:
i=0
stderr:
dash: 1: shopt: not found
dash: 4: i++: not found
dash: 4: i++: not found
dash: 4: i++: not found
mksh21 shopt -s lastpipe (always on in OSH)

stdout:
i=0
stderr:
mksh: <stdin>[1]: shopt: not found
bash22 SIGPIPE causes pipeline to die (regression for issue #295)

stdout:
1 0
stderr:
cat: write error: Broken pipe
dash22 SIGPIPE causes pipeline to die (regression for issue #295)

stdout:
stderr: 
cat: write error: Broken pipe
dash: 2: Bad substitution
zsh22 SIGPIPE causes pipeline to die (regression for issue #295)

stdout:
stderr: 
cat: write error: Broken pipe
dash25 shopt -s lastpipe and shopt -s no_last_fork interaction

stdout:
stderr: