Pavel Tsekov wrote:

* Quote the word which indicates the end of the _here_document which
is used to create /etc/exports

I don't understand very well why the last change was necessary but it fixed the following problem:

/usr/bin/nfs-server-config: 69: Syntax error: EOF in backquote substitution
For "here" documents, the body undergoes substitutions by the shell, depending
on how the keyword is quoted.  There is a backquote (`) in the original script,
in an unquoted here-doc, and that is indeed a syntax error, since the shell
is trying to expand it as a command substitution.

Try these:

cat <<EOF
HOME is $HOME
the date is `date`
the date is $(date)
EOF

cat <<"EOF"
HOME is $HOME
the date is `date`
the date is $(date)
EOF

cat <<\EOF
HOME is $HOME
the date is `date`
the date is $(date)
EOF

Joe Buehler

Reply via email to