Welcome! Log In Create A New Profile

Advanced

Re: Question about the env

November 12, 2010 02:26PM
On Fri, Nov 12, 2010 at 02:09:11AM -0500, speedfirst wrote:

> Hey, I noticed that the "env" directive in the main module is not an
> equivalent of "export" in bash or "putenv" in C stdlib. The variables
> defined by "env" seems only can be used by the embeded Perl module,
> right?

Not only.
For example, "env OPENSSL_ALLOW_PROXY_CERTS=1;" controls OpenSSL.
"env MALLOC_OPTIONS;" controls FreeBSD malloc().

> The wiki doc for this directive is a little hard to understand. Let's
> make it simple. In which cases, the variables defined by "env" can be
> considered equivalent to the variables in bash?

By default, nginx wipes all its environment variables expect TZ variable.
"env NAME" allows to keep NAME variable value got from parent process,
i.e., shell. "env NAME=val" sets NAME variable value.


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Question about the env

speedfirst November 12, 2010 02:09AM

Re: Question about the env

Igor Sysoev November 12, 2010 02:26PM

Re: Question about the env

Igor Sysoev November 12, 2010 02:48PM

Re: Question about the env

speedfirst November 13, 2010 06:51AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 158
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready