Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!ginosko!usc!snorkelwacker!think!kulla!barmar From: barmar@kulla (Barry Margolin) Newsgroups: comp.unix.questions Subject: Re: why no .kshrc file? Keywords: ksh history sh csh Message-ID: <30996@news.Think.COM> Date: 17 Oct 89 18:19:27 GMT References: <262@zeek.UUCP> <1287@virtech.UUCP> Sender: news@Think.COM Organization: Thinking Machines Corporation, Cambridge MA, USA Lines: 14 In article <1287@virtech.UUCP> cpcahil@virtech.UUCP (Conor P. Cahill) writes: >In article <262@zeek.UUCP>, rick@zeek.UUCP (Rick Wilhelm) writes: >> 1) Is there a way to run ksh with a startup script and >> then turn things over to stdin and the $ prompt, etc.? >Yes. place the name of the script into the $ENV environment variable >and all sub-kshell will run it. How do you arrange for $ENV to get set if the shell isn't a descendent of a login shell? For instance, shells started by "rsh" aren't login shells. Barry Margolin, Thinking Machines Corp. barmar@think.com {uunet,harvard}!think!barmar