🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #123

Re: setting variable from script to current environment??

#123
From: Samuel N Kamens
Date: Thu, 23 Jul 1992 19:19
20 lines
1266 bytes
In article <1992Jul22.014834.1384@jpradley.jpr.com>, jpr@jpradley.jpr.com (Jean-Pierre Radley) writes:
> In article <1992Jul21.070212.16485@gbrmpa.gov.au> wayne@gbrmpa.gov.au (Wayne Amisano) writes:
> 
> If you "source script" (csh, tcsh), or ". script" (sh, ksh), then yes, you can
> set variables that way.


One thing to be careful of when you source shells -- if those shells
have an "exit" in them, that will cause the *PARENT* process to exit.

I can't count how many times I have sourced a file that did an exit
and watched my xterm disappear..... :-(

Sam 

-- 
Sam Kamens					Bell Communications Research
snk@bae.bellcore.com				Phone: (908) 699-7509
444 Hoes Lane  Room RRC 1D-210
Piscataway, NJ 08854
Technical Details
Message-ID: <1992Jul23.191928.4948@walter.bellcore.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!walter!fork!snk
References: <1992Jul21.070212.16485@gbrmpa.gov.au> <1992Jul22.014834.1384@jpradley.jpr.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.shell
Path: arc1-ca.pugleaf.net!sparky!uunet!walter!fork!snk
From: snk@fork.bae.bellcore.com (Samuel N Kamens)
Subject: Re: setting variable from script to current environment??
Message-ID: <1992Jul23.191928.4948@walter.bellcore.com>
Sender: news@walter.bellcore.com
Nntp-Posting-Host: fork.bae.bellcore.com
Reply-To: snk@bae.bellcore.com
Organization: Bell Communications Research
References: <1992Jul21.070212.16485@gbrmpa.gov.au> <1992Jul22.014834.1384@jpradley.jpr.com>
Date: Thu, 23 Jul 92 19:19:28 GMT
Lines: 20