Results for here-doc.test.sh

statusdashbashmkshoshosh_ALT
pass 2931303131
ok 00211
N-I 30000
BUG 01000
total3232323232
casedashbashmkshoshosh_ALTdescription
0N-I pass pass pass pass Here string
details
1N-I pass pass pass pass Here string with $
details
2pass pass pass pass pass Here redirect with explicit descriptor
3pass pass pass pass pass Here doc from another input file descriptor
4pass pass pass pass pass Multiple here docs with different descriptors
5pass pass pass ok ok Here doc with bad var delimiter
detailsdetails
6pass BUG ok pass pass Here doc with bad comsub delimiter
detailsdetails
7pass pass pass pass pass Here doc and < redirect -- last one wins
8pass pass pass pass pass < redirect and here doc -- last one wins
9pass pass pass pass pass Here doc with var sub, command sub, arith sub
10pass pass pass pass pass Here doc in middle. And redirects in the middle.
11pass pass pass pass pass Here doc line continuation
12pass pass pass pass pass Here doc with quote expansion in terminator
13pass pass pass pass pass Here doc with multiline double quoted string
14pass pass pass pass pass Two here docs -- first is ignored; second ones wins!
15pass pass ok pass pass Here doc with line continuation, then pipe. Syntax error.
details
16pass pass pass pass pass Here doc with pipe on first line
17pass pass pass pass pass Here doc with pipe continued on last line
18pass pass pass pass pass Here doc with builtin 'read'
19pass pass pass pass pass Compound command here doc
20pass pass pass pass pass Here doc in while condition and here doc in body
21pass pass pass pass pass Here doc in while condition and here doc in body on multiple lines
22pass pass pass pass pass Here doc in while loop split up more
23pass pass pass pass pass Mixing << and <<-
24pass pass pass pass pass Two compound commands with two here docs
25pass pass pass pass pass Function def and execution with here doc
26pass pass pass pass pass Here doc as command prefix
27pass pass pass pass pass Redirect after here doc
28pass pass pass pass pass here doc stripping tabs
29N-I pass pass pass pass Here doc within subshell with boolean
details
30pass pass pass pass pass Here Doc in if condition
31pass pass pass pass pass Nested here docs which are indented
152 passed, 4 OK, 3 not implemented, 1 BUG, 0 failed, 0 timeouts, 2 cases skipped

Details on runs that didn't PASS

dash0 Here string

stdout:
stderr: 
dash: 1: Syntax error: redirection unexpected
dash1 Here string with $

stdout:
stderr: 
dash: 1: Syntax error: redirection unexpected
osh5 Here doc with bad var delimiter

stdout:
stderr: 
  cat <<${a}
        ^~
[ stdin ]:1: Invalid here doc delimiter
osh_ALT5 Here doc with bad var delimiter

stdout:
stderr: 
  cat <<${a}
        ^~
[ stdin ]:1: Invalid here doc delimiter
bash6 Here doc with bad comsub delimiter

stdout:
here
stderr:
mksh6 Here doc with bad comsub delimiter

stdout:
stderr: 
mksh: <stdin>[1]: syntax error: '(' unexpected
mksh15 Here doc with line continuation, then pipe. Syntax error.

stdout:
stderr: 
mksh: <stdin>[5]: cat: 1: No such file or directory
mksh: <stdin>[6]: syntax error: '|' unexpected
dash29 Here doc within subshell with boolean

stdout:
127
stderr:
dash: 1: [[: not found