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 N-I pass FAIL FAIL |&
detailsdetailsdetailsdetails
8pass pass pass pass pass pass ! turns non-zero into zero
9pass pass pass pass pass pass ! turns zero into 1
10pass pass pass pass pass pass ! in if
11pass pass pass pass pass pass ! with ||
12pass pass pass pass pass pass ! with { }
13pass pass pass pass pass pass ! with ( )
14pass pass pass pass pass pass ! is not a command
15pass pass pass BUG pass pass Evaluation of argv[0] in pipeline occurs in child
details
16pass pass pass ok pass pass last command is run in its own process
details
17N-I pass N-I pass FAIL FAIL shopt -s lastpipe
detailsdetailsdetailsdetails
18N-I pass N-I pass FAIL FAIL shopt -s lastpipe
detailsdetailsdetailsdetails

97 passed, 1 ok, 8 known unimplemented, 2 known bugs, 3 failed, 0 skipped

Details on runs that didn't PASS

zsh3 Redirect in Pipeline

stdout:
1
stderr:
hi
dash6 PIPESTATUS

stdout:
stderr: 
/bin/dash: 2: Bad substitution
zsh6 PIPESTATUS

stdout:
stderr: 
dash7 |&

stdout:
stderr: 
/bin/dash: 1: Syntax error: "&" unexpected
mksh7 |&

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

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

stdout:
stderr: 
Traceback (most recent call last):
  File "bin/osh", line 475, in <module>
    main(sys.argv)
  File "bin/osh", line 458, in main
    sys.exit(OilMain(argv))
  File "bin/osh", line 441, in OilMain
    status = OshMain(main_argv, login_shell)
  File "bin/osh", line 394, in OshMain
    status = ex.Execute(node)
  File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 962, in Execute
    status = self._Execute(node, fork_external=fork_external)
  File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 926, in _Execute
    status, check_errexit = self._Dispatch(node, fork_external)
  File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 736, in _Dispatch
    status = self._ExecuteList(node.children)
  File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 955, in _ExecuteList
    status = self._Execute(child)  # last status wins
  File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 926, in _Execute
    status, check_errexit = self._Dispatch(node, fork_external)
  File "/home/andy/git/oilshell/oil/bin/../core/cmd_exec.py", line 638, in _Dispatch
    raise NotImplementedError('|&')
NotImplementedError: |&
osh_ALT7 |&

[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/Python-2.7.13/Lib/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/home/andy/git/oilshell/oil/Python-2.7.13/Lib/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 475, in <module>
    main(sys.argv)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 458, in main
    sys.exit(OilMain(argv))
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 441, in OilMain
    status = OshMain(main_argv, login_shell)
  File "/home/andy/git/oilshell/oil/bin/oil.py", line 394, in OshMain
    status = ex.Execute(node)
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 962, in Execute
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 926, in _Execute
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 736, in _Dispatch
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 955, in _ExecuteList
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 926, in _Execute
  File "/home/andy/git/oil/bin/../core/cmd_exec.py", line 638, in _Dispatch
NotImplementedError: |&
FATAL: couldn't import from app bundle '_bin/osh' (1)
Stripping the oil.ovm binary may cause this error.
See https://github.com/oilshell/oil/issues/47
zsh15 Evaluation of argv[0] in pipeline occurs in child

stdout:
1
cmd=echo
stderr:
zsh16 last command is run in its own process

stdout:
line=hi
stderr:
dash17 shopt -s lastpipe

stdout:
line=
stderr:
/bin/dash: 1: shopt: not found
mksh17 shopt -s lastpipe

stdout:
line=
stderr:
/bin/mksh: <stdin>[1]: shopt: not found
osh17 shopt -s lastpipe

[osh stdout] Expected 'line=hi\n', got 'line=\n'

stdout:
line=
stderr:
usage error: Invalid option 'lastpipe'
osh warning: *** read without -r not implemented ***
osh_ALT17 shopt -s lastpipe

[osh_ALT stdout] Expected 'line=hi\n', got 'line=\n'

stdout:
line=
stderr:
usage error: Invalid option 'lastpipe'
osh warning: *** read without -r not implemented ***
dash18 shopt -s lastpipe

stdout:
i=0
stderr:
/bin/dash: 1: shopt: not found
/bin/dash: 4: i++: not found
/bin/dash: 4: i++: not found
/bin/dash: 4: i++: not found
mksh18 shopt -s lastpipe

stdout:
i=0
stderr:
/bin/mksh: <stdin>[1]: shopt: not found
osh18 shopt -s lastpipe

[osh stdout] Expected 'i=3\n', got 'i=0\n'

stdout:
i=0
stderr:
usage error: Invalid option 'lastpipe'
osh warning: *** read without -r not implemented ***
osh warning: *** read without -r not implemented ***
osh warning: *** read without -r not implemented ***
osh warning: *** read without -r not implemented ***
osh_ALT18 shopt -s lastpipe

[osh_ALT stdout] Expected 'i=3\n', got 'i=0\n'

stdout:
i=0
stderr:
usage error: Invalid option 'lastpipe'
osh warning: *** read without -r not implemented ***
osh warning: *** read without -r not implemented ***
osh warning: *** read without -r not implemented ***
osh warning: *** read without -r not implemented ***