[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote on Wed, 22 Mar 2000:
> + PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
> + export /var/qmail/bin:/usr/local/bin:/usr/bin:/bin
> export: /var/qmail/bin:/usr/local/bin:/usr/bin:/bin: not a legal variable
> name

> The "not a legal variable name" on the export line still worries me. Why is
> it telling me that? Is the script still not correct?

I can't tell for sure without seeing your script, however I'm guessing
you have "export $PATH" in your script, where it should be
"export PATH".  By including the $, the PATH environment variable gets
expanded *before* the export command sees it, and so it's trying to
export a variable which name is the contents of the PATH variable.
This is not how it should work, of course. :-)  If you have it written
as $PATH, get rid of the $ (this is on the line with the export
command).

In fact this does not affect the startup of qmail at all apart from the
error getting displayed, because the PATH variable gets reset properly
with the env-command just a little later, when svscan is started.  So
svscan gets the proper path.  (Probably.)


I still think that the original error you had was a stray ^M (CR)
character at the export command line, like this: "export PATH^M", so
export complained it couldn't find a variable called "PATH^M".  You're
*not* supposed to have a $ in front of the variable when doing export.


Regards,
Mikko
-- 
// Mikko H�nninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
A mind is a terrible thing to ... er ... hmmmm?

Reply via email to