Friday, November 06, 2020

Re: Set environment variable for non-interactive shell

On 2020-11-06, Kirill Peskov <kirillp@paranoid.email> wrote:
> This is a cryptographically signed message in MIME format.
>
> --------------ms020502040909010802000003
> Content-Transfer-Encoding: 7bit
> Content-Type: text/plain; charset=utf-8
>
> Unfortunately manpage for login.conf does not give any example, only
> brief description:
>
> setenv envlist A list of environment
> variables and associated
> values to be set for the
> class.
>
> so if I would like to set for example global variable MY_ENV=DEV for all users and any login method, then what should I put here instead of XXXXXX?
>
> default:\
> :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin /usr/local/sbin:\
> :umask=022:\
> :setenv=XXXXXX:\
> :...blabla...:\

:setenv=MY_ENV=DEV:\

or

:setenv=MY_ENV1=DEV1,MYENV2=DEV2: \

etc.

No comments:

Post a Comment