home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / shell / 3105 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.2 KB  |  34 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!walter!fork!snk
  3. From: snk@fork.bae.bellcore.com (Samuel N Kamens)
  4. Subject: Re: setting variable from script to current environment??
  5. Message-ID: <1992Jul23.191928.4948@walter.bellcore.com>
  6. Sender: news@walter.bellcore.com
  7. Nntp-Posting-Host: fork.bae.bellcore.com
  8. Reply-To: snk@bae.bellcore.com
  9. Organization: Bell Communications Research
  10. References: <1992Jul21.070212.16485@gbrmpa.gov.au> <1992Jul22.014834.1384@jpradley.jpr.com>
  11. Date: Thu, 23 Jul 92 19:19:28 GMT
  12. Lines: 20
  13.  
  14. In article <1992Jul22.014834.1384@jpradley.jpr.com>, jpr@jpradley.jpr.com (Jean-Pierre Radley) writes:
  15. > In article <1992Jul21.070212.16485@gbrmpa.gov.au> wayne@gbrmpa.gov.au (Wayne Amisano) writes:
  16. > If you "source script" (csh, tcsh), or ". script" (sh, ksh), then yes, you can
  17. > set variables that way.
  18.  
  19.  
  20. One thing to be careful of when you source shells -- if those shells
  21. have an "exit" in them, that will cause the *PARENT* process to exit.
  22.  
  23. I can't count how many times I have sourced a file that did an exit
  24. and watched my xterm disappear..... :-(
  25.  
  26. Sam 
  27.  
  28. -- 
  29. Sam Kamens                    Bell Communications Research
  30. snk@bae.bellcore.com                Phone: (908) 699-7509
  31. 444 Hoes Lane  Room RRC 1D-210
  32. Piscataway, NJ 08854
  33.