[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Script Help



On 11/8/06, Rick Stevens <rstevens vitalstream com> wrote:
On Wed, 2006-11-08 at 17:28 -0600, inode0 wrote:
> It appears you are suggesting setting a variable in the environment of
> the parent process via exporting it in the child process. My brain is
> hurting this evening but I think the exported variable in the script
> would only be exported to the environment of any child processes it
> creates?!

Ah, you're right.  However, if the variable exists BEFORE the script is
called, the script can modify its contents and it'll persist.

Can you provide an example of doing that? I don't see how that would
be possible without some clever trickery.

John


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]