PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] export
Date: Wednesday, 18 Nov 2020, 06:49:09


    > Message Posted By: Unknown
    >
    > What does exporting an env val do? Does it mean that all processes can now
    > see that environment value?

Preceding a simple command or subcommand by NAME=VALUE
sets the environment variable NAME to VALUE for that
command or subcommand only.

Exporting NAME=VALUE sets NAME to VALUE in the shell
itself (which is why it must be a built-in command)
and thus in every command that the command executes
thereafter.

--Stan-
PREV INDEX NEXT