1

This:

cat <<EOF
one
two
three
EOF

Prints:

one
two
three

And this:

cat <<EOF
one \\
two \\
three
EOF

Prints:

one \
two \
three

But while this:

cat <(
cat <<EOF
one
two
three
EOF
)

Prints:

one
two
three

This:

cat <(
cat <<EOF
one \\
two \\
three
EOF
)

Prints:

one \two \three

What's going on? Why are the newlines disappearing in this situation?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.