Results for redirect-command.test.sh

statusoshosh-cpp
pass 2016
FAIL 26
total2222
caseoshosh-cppdescription
0pass pass >$file touches a file
1pass FAIL $(< $file) yields the contents of the file
details
2pass FAIL $(< file) with more statements
details
3pass pass < file in pipeline and subshell doesn't work
4pass pass Leading redirect in a simple command
5pass pass Redirect in the middle of a simple command
6FAIL FAIL Redirect in command sub
detailsdetails
7pass pass Redirect in the middle of two assignments
8FAIL FAIL Redirect in assignment
detailsdetails
9pass pass Redirect in function body
10pass pass Redirect in function body is evaluated multiple times
11pass pass Redirect in function body AND function call
12pass pass redirect bash extensions: [[ (( for ((
13pass pass redirect if
14pass pass redirect case
15pass pass redirect while
16pass FAIL redirect for loop
details
17pass pass redirect subshell
18pass FAIL Prefix redirect for loop -- not allowed
details
19pass pass Brace group redirect
20pass pass Redirect function stdout
21pass pass Nested function stdout redirect
36 passed, 0 OK, 0 not implemented, 0 BUG, 2 failed, 0 timeouts, 0 cases skipped
2 failed under osh

Details on runs that didn't PASS

osh-cpp1 $(< $file) yields the contents of the file

[osh-cpp stdout] Expected 'FOO\n', got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core
osh-cpp2 $(< file) with more statements

[osh-cpp stdout] Expected 'begin\n---\nend\n---\n\n---\n', got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core
osh6 Redirect in command sub

[osh stderr] Expected 'foo\n', got ''

stdout:
stderr: 
osh-cpp6 Redirect in command sub

[osh-cpp stdout] Expected '\n', got ''
[osh-cpp stderr] Expected 'foo\n', got "terminate called after throwing an instance of 'IndexError*'\ntimeout: the monitored command dumped core\n"
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core
osh8 Redirect in assignment

[osh stdout] Expected 'FILE=\nfoo\nFOO=\n', got 'FILE=\nFOO=\n'

stdout:
FILE=
FOO=
stderr:
osh-cpp8 Redirect in assignment

[osh-cpp stdout] Expected 'FILE=\nfoo\nFOO=\n', got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
timeout: the monitored command dumped core
osh-cpp16 redirect for loop

[osh-cpp stdout] Expected '1\n2\n3\n', got ''
[osh-cpp status] Expected 0, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core
osh-cpp18 Prefix redirect for loop -- not allowed

[osh-cpp status] Expected 2, got -6

stdout:
stderr: 
terminate called after throwing an instance of 'IndexError*'
timeout: the monitored command dumped core