[aklug] Re: Export bash variables...

From: Leif Sawyer <lsawyer@gci.com>
Date: Thu Sep 09 2010 - 15:32:06 AKDT

when the script 'executes' it's launching into a new process.

What you really want is:

$ . envscript.sh

which executes in the context of the current process.=20

> -----Original Message-----
> From: aklug-bounce@aklug.org [mailto:aklug-bounce@aklug.org]=20
> On Behalf Of Christopher Howard
> Sent: Thursday, September 09, 2010 2:50 PM
> To: Alaska Linux Users Group
> Subject: [aklug] Export bash variables...
>=20
> Instead of manually setting my project variables, I was=20
> thinking I could set them through a script like so:
>=20
> #!/usr/bin/env bash
>=20
> LFS=3D/vm/drv85-0000-p1
> export LFS
>=20
> This scripts executes, but for some reason afterwards
>=20
> echo $LFS
>=20
> echos only a blank line. Am I missing something?
>=20
> --
> Christopher Howard
> http://frigidcode.com
> http://theologia.indicium.us
>=20
> ---------
> To unsubscribe, send email to <aklug-request@aklug.org> with=20
> 'unsubscribe' in the message body.
>=20
> =
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Thu Sep 9 15:32:14 2010

This archive was generated by hypermail 2.1.8 : Thu Sep 09 2010 - 15:32:15 AKDT