PER5LIB

Kevin J. Cummings cummings at kjchome.homeip.net
Mon Aug 3 19:52:54 UTC 2009


On 08/03/2009 03:28 PM, Patrick Dupre wrote:
> Hello,
> 
> It looks like that the variable PERL5LIB can be modified inside a
> shell, but then the export (when calling gnome-terminal) reset the value
> to this orginal value.
> 
> Is it the expect behavior ?

If you mean that a process with the variable PERL5LIB calls a
sub-process (another shell, if you will), which changes the variable and
exports it, yes.  The changed value is only available to the subprocess.
 The calling process' version of the variable is never changed.  This is
expected behavior.  "Exporting" only makes the changed value available
to the current process and any process spawned from that process, not to
any parent processes.

-- 
Kevin J. Cummings
kjchome at rcn.com
cummings at kjchome.homeip.net
cummings at kjc386.framingham.ma.us
Registered Linux User #1232 (http://counter.li.org)




More information about the fedora-list mailing list