home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / programm / 5656 < prev    next >
Encoding:
Internet Message Format  |  1992-12-11  |  1016 b 

  1. Path: sparky!uunet!think.com!barmar
  2. From: barmar@think.com (Barry Margolin)
  3. Newsgroups: comp.unix.programmer
  4. Subject: Re: Need Information On rexec()
  5. Date: 11 Dec 1992 20:28:22 GMT
  6. Organization: Thinking Machines Corporation, Cambridge MA, USA
  7. Lines: 25
  8. Message-ID: <1gatl6INNmvg@early-bird.think.com>
  9. References: <1g65dhINNjqc@smurf.sti.com>
  10. NNTP-Posting-Host: telecaster.think.com
  11.  
  12. In article <1g65dhINNjqc@smurf.sti.com> westes@smurf.sti.com (Will Estes) writes:
  13. >-    Why does rexec() fail to invoke .login?
  14.  
  15. Because it's just running a single command line, not starting up a full,
  16. interactive login session.
  17.  
  18. >-    Is it common practice to just leave your environment variables
  19. >    in .cshrc?
  20.  
  21. Yes.  What you can do is write:
  22.  
  23. if ( ! $? ENV_SET ) then
  24.     setenv ...
  25.     setenv ...
  26.     ...
  27.     setenv ENV_SET
  28. endif
  29.  
  30. This way you won't re-execute all the environment variable settings for all
  31. sub-shells.
  32. -- 
  33. Barry Margolin
  34. System Manager, Thinking Machines Corp.
  35.  
  36. barmar@think.com          {uunet,harvard}!think!barmar
  37.