[vox-tech] Bash script to setup environment variables
Jeff Newmiller
vox-tech@lists.lugod.org
Fri, 28 Dec 2001 00:25:27 -0800 (PST)
On Thu, 27 Dec 2001, Mark K. Kim wrote:
> Keywords: bash, script, environment variables
>
> Hello folks...
>
> I'm doing some cross-compilation work so I need to flip environment
> variables on/off in a heartbeat. I tried to write a script, but scripts
> run on sub-processes so the changes do not take effect on the parent
> process. Is there a way, without having to type `source script` or `.
> script`, to make environment variables changes take place on the running
> process?
Use an alias to invoke the inconvenient-to-type command?
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...2k
---------------------------------------------------------------------------