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