That's not how the environment works. Changes are only visible to the current process and its children. You cannot change the "upwards" environment.
The traditional technique is to output a shell script that the "upper" process then evaluates:
# In the parent shell do: $(perl -wle 'print "export pathy=kuku') echo $pathy
In reply to Re: cannot modify LINUX env vars
by Corion
in thread cannot modify LINUX env vars
by ISAI student
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |