This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: nfsd and mountd
- From: Joe Buehler <jbuehler at hekimian dot com>
- To: cygwin-apps at cygwin dot com
- Date: Fri, 03 Jan 2003 10:55:21 -0500
- Subject: Re: nfsd and mountd
- Organization: Spirent Communications
- References: <Pine.LNX.4.44.0212291249250.5224-100000@moria.atlanticsky.com>
- Reply-to: joseph dot buehler at spirentcom dot com
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