VAR=$(cat <<'END_HEREDOC'
abc'asdf"
$(dont-execute-this)
foo"bar"''
END_HEREDOC
)
# this will echo variable with new lines intact
echo "$VAR"
# this will echo variable without new lines (changed to space character)
echo $VAR
define VAR <<'EOF'
abc'asdf"
$(dont-execute-this)
foo"bar"''
EOF
echo "$VAR"
VAR=<<END
abc
END
export A=`cat <<END
sdfsdf
sdfsdf
sdfsfds
END
` ; echo $A
export A=$(cat <<END
sdfsdf
sdfsdf
sdfsfds
END
) ; echo $A