Heredocs and Expansion
You generate a script with a heredoc and want $HOME and $(date) to be written literally, not expanded. Which form?
$HOME
$(date)
Choose one answer
cat <<EOF > run.sh
cat << EOF > run.sh with a space before EOF
cat << EOF > run.sh
EOF
cat <<'EOF' > run.sh
cat <<-EOF > run.sh