in reply to Re: keeping something in memory after the end of script
in thread keeping something in memory after the end of script

Not really (at least, not without some sort of nutso magic trick). The shell would be the parent process of your script; you can't mess with your parent's environment.

  • Comment on Re^2: keeping something in memory after the end of script

Replies are listed 'Best First'.
Re^3: keeping something in memory after the end of script
by NetWallah (Canon) on Apr 16, 2016 at 00:32 UTC
    Point taken (++), but the magic is not too achene:
    ~$ chksum=$(perl -e'print qq|Set by perl|'); echo BASH says chksum is +$chksum BASH says chksum is Set by perl

            This is not an optical illusion, it just looks like one.