home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!mcsun!chsun!uiag.ch!jonas
- From: jonas@uiag.ch (Jonas Furrer (317))
- Subject: Exporting environment variables form nested scripts
- Message-ID: <BzpoFo.2Hv@uiag.ch>
- Organization: EMCH+BERGER
- Date: Wed, 23 Dec 1992 12:09:23 GMT
- Lines: 32
-
- How can I export environment variables from nested shell scripts?
-
- Here is my trial: (all scripts are csh-scripts)
-
- % generate ---------+
- |
- v /* in generate */
-
- source project_env ----+
- |
- v /* in project_env
-
- setenv AMS1 /project/test1
- setenv AMS2 /project/test2
-
- |
- +----------------+
- |
- % <-----------------+
- % printenv |grep AMS
- % /* nothing */
-
- Thanks. Jonas.
-
-
- +---------------------+---------------------------+
- |Jonas Furrer |E-Mail : jonas@uiag.ch |
- |Emch + Berger AG |Tel : +41 31 25 23 23 |
- |Gartenstrasse 1 |Fax : +41 31 25 16 85 |
- |3001 BERN (CH) | |
- +---------------------+---------------------------+
-
-