# Oracle-derived tests: heredoc_formatting
# Generated by fuzzing against bash-oracle
# 9 test cases
=== heredoc_formatting 1
cat 0<< OF
content
EO\
---
(command (word "cat") (redirect "<<" "content
EO\\"))
---
=== heredoc_formatting 2
cat <<EOF||1 <<EOF2first
EOF1
second
E*F2
---
(or (command (word "cat") (redirect "<<" "EOF1
second
E*F2
")) (command (word "1") (redirect "<<" "")))
---
=== heredoc_formatting 3
cat <<"$name" 2&>1
---
(command (word "cat") (word "2") (redirect "<<" "") (redirect "&>" "1"))
---
=== heredoc_formatting 4
time -p slee<<<p 1 > /dev/null
---
(time -p (command (word "slee") (word "1") (redirect "<<<" "p") (redirect ">" "/dev/null")))
---
=== heredoc_formatting 5
exec {f<<<d}>out 2&>1 | exec {f<<<d}>out 2&>1
---
(pipe (command (word "exec") (word "{f") (word "2") (redirect "<<<" "d}") (redirect ">" "out") (redirect "&>" "1")) (command (word "exec") (word "{f") (word "2") (redirect "<<<" "d}") (redirect ">" "out") (redirect "&>" "1")))
---
=== heredoc_formatting 6
cat <<< $'line1\n <<< $'line2' > /dev/null || cat <<< $'line1\n <<< $'line2' > /dev/null
---
(command (word "cat") (redirect "<<<" "'line1
<<< $'line2' > /dev/null || cat <<< $'line1\n") (redirect "<<<" "'line2'") (redirect ">" "/dev/null"))
---
=== heredoc_formatting 7
cat <<EOF while 1 <<EOF2
first
EOF1
cat <<EOFsecond
EOF2
---
(command (word "cat") (word "while") (word "1") (redirect "<<" "first
EOF1
cat <<EOFsecond
EOF2
") (redirect "<<" ""))
---
=== heredoc_formatting 8
coproc <<cat
---
(coproc "COPROC" (command (redirect "<<" "")))
---
=== heredoc_formatting 9
cat {6d}<<n<text
---
(command (word "cat") (word "{6d}") (redirect "<<" "") (redirect "<" "text"))
---