home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / xenix / sco / 2726 < prev    next >
Encoding:
Text File  |  1992-08-22  |  1.8 KB  |  33 lines

  1. Newsgroups: comp.unix.xenix.sco
  2. Path: sparky!uunet!decwrl!pa.dec.com!dynamix!david@uu3.psi.com
  3. From: david@dynamix.com (David L Jarvis)
  4. Subject: ksh invocation
  5. Organization:  SOFTWARE / DYNAMIX
  6. Message-ID: <9208221114.AA22830@dynamix.com>
  7. Date: Sat, 22 Aug 92 11:14:30 EDT
  8. X-Received: by usenet.pa.dec.com; id AA11042; Sat, 22 Aug 92 09:38:25 -0700
  9. X-Received: by inet-gw-1.pa.dec.com; id AA01963; Sat, 22 Aug 92 09:37:47 -0700
  10. X-Received: from dynamix.UUCP by uu3.psi.com (5.65b/4.0.071791-PSI/PSINet)id AA04760; Sat, 22 Aug 92 12:37:37 -0400
  11. X-Received: by dynamix.com (smail2.5c)id AA22834; 22 Aug 92 11:14:31 EDT (Sat)
  12. X-To: comp.unix.xenix.sco.usenet (comp.unix.xenix.sco)
  13. X-Mailer: ELM [version 2.3 PL11]
  14. Lines: 17
  15.  
  16. I'm noticing some behavior with /bin/ksh that is contradictory to what I've
  17. read in TFM.  (or I could be misinterpreting what I've read, who knows)
  18. I was under the impression that upon invocation ksh would read /etc/profile
  19. and $HOME/.profile, then, only if it was a login shell (-ksh) it would
  20. read .kshrc (or whatever filename ENV was set to in .profile) ... but this
  21. doesn't appear to be the case.  If I login with ksh as the SHELL, and
  22. invoke another /bin/ksh from the command line, both .profile and .kshrc
  23. get executed.  For me the conflict arose by wanting users to have an exec
  24. runmenu at the end of their .login but still be able to get out to a shell
  25. if they need to.  (which, btw, I have solved with ps | awk :-) )
  26. Anyway, can someone out there confirm or deny this functionality?
  27.  
  28.  
  29. #----------------------------------------------------------------------#
  30. #          David L. Jarvis                 SOFTWARE  /                 #
  31. #          david@dynamix.com                       /  DYNAMIX          #
  32. #----------------------------------------------------------------------#
  33.