e.g.:
Code:
#!/bin/bash
cat << EOF >>/tmp/test
test `hostname` = "vm20" || return
EOF
expected content of /tmp/test:
test `hostname` = "vm20" || return
actually get:
test vm20 = "vm20" || return
further more, if there are variables like "$#,$a" inside the cat area they all will be parsed and replaced by their value in current shell.
how to stop this kind of parsing inside the cat area?