Is it possible to create a heredoc that does not become subject to variable expansion?
e.g.
cat <<-EOF > somefile.sh Do not print current va
Put backlash before the $ sign
$ VAR=XXX $ cat << END > dk > \$VAR > END dk $VAR