Results for pipeline.test.sh

casedashbashmkshzshoshosh_ALTdescription
0pass pass pass pass pass pass Brace group in pipeline
1pass pass pass pass pass pass For loop starts pipeline
2pass pass pass pass pass pass While Loop ends pipeline
3pass pass pass BUG pass pass Redirect in Pipeline
details
4pass pass pass pass pass pass Pipeline comments
5pass pass pass pass pass pass Exit code is last status
6N-I pass pass N-I pass pass PIPESTATUS
detailsdetails
7N-I pass pass N-I pass pass PIPESTATUS with shopt -s lastpipe
detailsdetails
8N-I pass N-I pass FAIL FAIL |&
detailsdetailsdetailsdetails
9pass pass pass pass pass pass ! turns non-zero into zero
10pass pass pass pass pass pass ! turns zero into 1
11pass pass pass pass pass pass ! in if
12pass pass pass pass pass pass ! with ||
13pass pass pass pass pass pass ! with { }
14pass pass pass pass pass pass ! with ( )
15pass pass pass pass pass pass ! is not a command
16pass pass pass BUG pass pass Evaluation of argv[0] in pipeline occurs in child
details
17ok ok ok pass pass pass bash/dash/mksh run the last command is run in its own process
detailsdetailsdetails
18N-I pass N-I pass pass pass shopt -s lastpipe (always on in OSH)
detailsdetails
19N-I pass N-I pass pass pass shopt -s lastpipe (always on in OSH)
detailsdetails
20N-I BUG pass N-I pass pass SIGPIPE causes pipeline to die (regression for issue #295)
detailsdetailsdetails

106 passed, 3 ok, 12 known unimplemented, 3 known bugs, 1 failed, 0 skipped

Details on runs that didn't PASS

zsh3 Redirect in Pipeline

stdout:
1
stderr:
hi
dash6 PIPESTATUS

stdout:
stderr: 
_tmp/spec-bin/dash: 5: Bad substitution
zsh6 PIPESTATUS

stdout:
stderr: 
dash7 PIPESTATUS with shopt -s lastpipe

stdout:
stderr: 
_tmp/spec-bin/dash: 1: shopt: not found
_tmp/spec-bin/dash: 6: Bad substitution
zsh7 PIPESTATUS with shopt -s lastpipe

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

stdout:
stderr: 
_tmp/spec-bin/dash: 1: Syntax error: "&" unexpected
mksh8 |&

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

[osh stdout] Expected u'STDERR\nSTDOUT\n', got ''
[osh status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 859, in <module>
    main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 827, in main
    sys.exit(AppBundleMain(argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 797, in AppBundleMain
    status = ShellMain('osh', argv0, main_argv, login_shell)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 610, in ShellMain
    status = main_loop.Batch(ex, c_parser, arena, nodes_out=nodes_out)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 162, in Batch
    is_control_flow, is_fatal = ex.ExecuteAndCatch(node)
  File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1188, in ExecuteAndCatch
    status = self._Execute(node, fork_external=fork_external)
  File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1136, in _Execute
    status, check_errexit = self._Dispatch(node, fork_external)
  File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 700, in _Dispatch
    raise NotImplementedError('|&')
NotImplementedError: |&
osh_ALT8 |&

[osh_ALT stdout] Expected u'STDERR\nSTDOUT\n', got ''
[osh_ALT status] Expected 0, got 1

stdout:
stderr: 
Traceback (most recent call last):
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 846, in _cpython_main_hook
    main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 827, in main
    sys.exit(AppBundleMain(argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 797, in AppBundleMain
    status = ShellMain('osh', argv0, main_argv, login_shell)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 610, in ShellMain
    status = main_loop.Batch(ex, c_parser, arena, nodes_out=nodes_out)
  File "/home/andy/git/oilshell/oil/core/main_loop.py", line 168, in Batch
    return status
  File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1188, in ExecuteAndCatch
    status = self._Execute(node, fork_external=fork_external)
  File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1136, in _Execute
    status, check_errexit = self._Dispatch(node, fork_external)
  File "/home/andy/git/oilshell/oil/osh/cmd_exec.py", line 1077, in _Dispatch
    libc.print_time(real, user, sys_)
NotImplementedError: |&
FATAL: couldn't import from app bundle '_tmp/oil-tar-test/oil-0.6.pre22/_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
zsh16 Evaluation of argv[0] in pipeline occurs in child

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

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

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

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

stdout:
line=
stderr:
_tmp/spec-bin/dash: 1: shopt: not found
mksh18 shopt -s lastpipe (always on in OSH)

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

stdout:
i=0
stderr:
_tmp/spec-bin/dash: 1: shopt: not found
_tmp/spec-bin/dash: 4: i++: not found
_tmp/spec-bin/dash: 4: i++: not found
_tmp/spec-bin/dash: 4: i++: not found
mksh19 shopt -s lastpipe (always on in OSH)

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

stdout:
stderr: 
cat: write error: Broken pipe
_tmp/spec-bin/dash: 2: Bad substitution
bash20 SIGPIPE causes pipeline to die (regression for issue #295)

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

stdout:
stderr: 
cat: write error: Broken pipe