In the usual Bourne-y shell, 'env' is not required.
        $ FOO=bar baz
runs baz with FOO var equal to bar.  We used to do
this to get the time at various remote sites:
        $ TZ=EST date
Env _is_ useful for something like:
        $ env - FOO=bar baz
where all environment variables _except_ FOO
are eliminated.

-- Jim



-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Denys Vlasenko
Sent: Wednesday, March 18, 2009 1:00 PM
To: Benedikt Hochstrasser
Cc: [email protected]
Subject: Re: SERVER_NAME in httpd.c (busybox-1.13.3)

Hi Benedikt,

sorry for the delay...

On Wed, Mar 11, 2009 at 11:04 PM, Benedikt Hochstrasser
<[email protected]> wrote:
> an absurdly simple patch for httpd.c that provides the often-needed
> SERVER_NAME cgi environment variable.

Wouldn't

env SERVER_NAME=xyz httpd ...

do that as well?
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to