Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!noose.ecn.purdue.edu!root From: luj@gus17.ecn.purdue.edu (Jun Lu) Newsgroups: comp.unix.shell Subject: HOW do you tell KSH is interactive ? Message-ID: <1991Feb18.070424.6054@noose.ecn.purdue.edu> Date: 18 Feb 91 07:04:24 GMT Sender: root@noose.ecn.purdue.edu (ECN System Management) Organization: Purdue University School of Aeronautics and Astronautics Lines: 13 In my .profile I set "export ENV=~/.kshrc". Certainly I don't want the aliases or something to executed for non-interactive shell, i.e. the shell spawned to interprete the ksh-scripts. Is there a way to tell if the shell is interactive wone ithin .kshrc ? Thanks, --Jun P.S. testing PS1 didn't work. -- -- Jun Lu Internet:luj@ecn.purdue.edu -- -- Aeronautics & Astronautics Bitnet: luj%ecn.purdue.edu@purccvm -- -- Purdue University UUCP: pur-ee!luj -- -- W. Lafayette, IN 47907 Phone:317-494-9410 Fax:317-494-0307 --