This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: nfsd and mountd


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]