home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / hp / 9492 < prev    next >
Encoding:
Text File  |  1992-08-20  |  1.6 KB  |  41 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!news.claremont.edu!nntp-server.caltech.edu!draco.macsch.com!drd
  3. From: drd@macsch.com (Daniel R. Dawson)
  4. Subject: Re: ksh and HP Console?
  5. Message-ID: <1992Aug20.173408.19442@draco.macsch.com>
  6. Sender: usenet@draco.macsch.com (Usenet Poster)
  7. Organization: The MacNeal-Schwendler Corporation
  8. References: <GHENNIGA.92Aug18125155@ampere.ampere> <1992Aug19.191008.27222@hpcvusn.cv.hp.com>
  9. Date: Thu, 20 Aug 92 17:34:08 GMT
  10. Lines: 29
  11.  
  12.  
  13. |>     No flames for what might be a dumb question, but, why is it that
  14. |> when I log in to the console and then start a terminal, by clicking the 
  15. |> terminal icon under HP VUE, it doesn't appear to read my .kshrc or my
  16. |> .profile, even though it does start up in the Korn Shell? The "Console"
  17. |> terminal window reads everything OK but any subsequent terminal I start,
  18. |> whether it be by clicking the icon or manually via the hpterm executable
  19. |> fails to set my environment properly by reading these files.
  20.  
  21. This ksh behavior is independent of HP VUE.  When your LOGIN shell is ksh,
  22. it will read your ~/.profile.  Subsequent invocations of /bin/ksh won't
  23. read any startup script unless you explicitly ask for it.  How do you ask for
  24. it?  The ENV environment variable.  In your ~/.profile, do a
  25.  
  26.       ENV=~/.kshrc
  27.       export ENV
  28.  
  29. This will make the ksh read your ~/.kshrc each time it creates a subsequent
  30. shell.
  31.  
  32. This parallels the C-Shell in that the .profile is like a .login, and
  33. a .kshrc is like a .cshrc.  This method can also be used for the
  34. Bourne shell as well.
  35.  
  36.    Dan Dawson
  37.    The MacNeal-Schwendler Corporation
  38. Phone: (414) 357-0338
  39. Email: D_Dawson@macsch.com or D_Dawson@draco.macsch.com
  40.  
  41.