home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / question / 13044 < prev    next >
Encoding:
Internet Message Format  |  1992-11-07  |  1.5 KB

  1. Path: sparky!uunet!think.com!barmar
  2. From: barmar@think.com (Barry Margolin)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: .profile vs. .kshrc
  5. Date: 6 Nov 1992 17:30:16 GMT
  6. Organization: Thinking Machines Corporation, Cambridge MA, USA
  7. Lines: 21
  8. Distribution: na
  9. Message-ID: <1dea38INN9r8@early-bird.think.com>
  10. References: <Bwwo6r.5CE@constant.demon.co.uk> <Bx5wxp.2oH@constant.demon.co.uk> <1992Nov04.233827.1078@trebor.uucp>
  11. NNTP-Posting-Host: telecaster.think.com
  12.  
  13. In article <1992Nov04.233827.1078@trebor.uucp> root@trebor.uucp (Bob Stockler) writes:
  14. >  If the
  15. >ENV environmental parameter is set (and exported) in either "/etc/profile" or
  16. >"$HOME/.profile" to contain the full pathname of any file, that file will be
  17. >read (and the commands in it executed, as though it were a "dot" file) upon
  18. >the invocation of any instance of the KornShell, at any level of subshells
  19. >(Bourne or Korn).  I have no idea how this relates to C shell users.
  20.  
  21. It's not as good as the C shell's .login and .cshrc facility.
  22.  
  23. The main problem with this Korn Shell feature is that it doesn't provide
  24. any way to customize the shell environment in a shell that isn't descended
  25. from a login shell.  These include the shell in which cron, at, and batch
  26. jobs run, and commands executed with rsh/remsh.  The C shell always
  27. executes the user's .cshrc (unless the "-f" option is specified), so you
  28. always get your custom environment.
  29. -- 
  30. Barry Margolin
  31. System Manager, Thinking Machines Corp.
  32.  
  33. barmar@think.com          {uunet,harvard}!think!barmar
  34.