Results for here-doc.test.sh

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 known unimplemented, 1 known bugs, 0 failed, 2 skipped

Details on runs that didn't PASS

dash0 Here string

stdout:
stderr: 
_tmp/spec-bin/dash: 1: Syntax error: redirection unexpected
dash1 Here string with $

stdout:
stderr: 
_tmp/spec-bin/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: 
_tmp/spec-bin/mksh: <stdin>[1]: syntax error: '(' unexpected
mksh15 Here doc with line continuation, then pipe. Syntax error.

stdout:
  2&>1
  ^
[ -c flag ]:1: Can't execute '2': No such file or directory
stderr:
_tmp/spec-bin/mksh: <stdin>[6]: syntax error: '|' unexpected
dash29 Here doc within subshell with boolean

stdout:
127
stderr:
_tmp/spec-bin/dash: 1: [[: not found