Matthew Jarvis wrote:
> # change these to suit your needs
> SENDMAIL=/usr/sbin/sendmail # your Mail-Transfer-Agent
> SENDMAIL_OPTS= # and its required options
>
> Then later when it fires off the command, it looks like this:
>
>
> cat $TEMPFILE | $SENDMAIL $SENDMAIL_OPTS "$@"
>
>
> It looks to me like the first ref to SENDMAIL_OPTS is a dangling
> reference, but then later on the command that runs supplies the parameter.
The shell is just doing string substitution. The line,
SENDMAIL_OPTS=
sets the variable to the empty string.
Then this line
... $SENDMAIL $SENDMAIL_OPTS "$@"
substitutes the empty string for the variable.
This happens before the shell parses the command to break it into
words, so it just looks like there are two spaces between
"/usr/sbin/sendmail" and the first supplied argument.
So, in other words, it's fine. No bugs here...
--
Bob Miller K<bob>
[EMAIL PROTECTED]
_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug