From: | Alexander Veit <list@×××××××.de> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] Environment variables don't export from within scripts | ||
Date: | Mon, 02 Jan 2006 22:02:05 | ||
Message-Id: | 017301c60fe6$fd276530$0201010a@sampaw.com | ||
In Reply to: | [gentoo-user] Environment variables don't export from within scripts by Kris Kerwin |
1 | Kris Kerwin wrote: |
2 | |
3 | > I'm having difficulties exporting environment variables from within |
4 | > scripts. The problem doesn't seem to occur when exporting variables |
5 | > from the command line. |
6 | |
7 | The script is executed by a subshell that has it's own environment. export |
8 | does not affect the caller's environment. |
9 | http://www.gnu.org/software/bash/manual/bashref.html#SEC51 |
10 | |
11 | The source command (.) may help you. |
12 | http://www.gnu.org/software/bash/manual/bashref.html#SEC56 |
13 | |
14 | |
15 | -Alex |
16 | |
17 | -- |
18 | gentoo-user@g.o mailing list |
Subject | Author |
---|---|
Re: [gentoo-user] Environment variables don't export from within scripts | Kris Kerwin <kkerwin@×××××××××.com> |