Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!spool.mu.edu!sdd.hp.com!news.cs.indiana.edu!purdue!spaf From: spaf@cs.purdue.EDU (Gene Spafford) Newsgroups: comp.unix.shell Subject: Re: HOW do you tell KSH is interactive ? Message-ID: <13477@medusa.cs.purdue.edu> Date: 18 Feb 91 08:01:40 GMT References: <1991Feb18.070424.6054@noose.ecn.purdue.edu> Sender: news@cs.purdue.EDU Organization: Department of Computer Science, Purdue University Lines: 12 If you only want to do something if you are interactive, then put the following at the appropriate places in your $ENV file: if [[ $- = *i* ]] then do stuff for interactive here fi -- Gene Spafford NSF/Purdue/U of Florida Software Engineering Research Center, Dept. of Computer Sciences, Purdue University, W. Lafayette IN 47907-2004 Internet: spaf@cs.purdue.edu phone: (317) 494-7825