Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!spool.mu.edu!sdd.hp.com!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!rpi!batcomputer!munnari.oz.au!uniwa!DIALix!metapro!bernie From: bernie@metapro.DIALix.oz.au (Bernd Felsche) Newsgroups: comp.unix.shell Subject: Re: HOW do you tell KSH is interactive ? Message-ID: <1991Feb26.041034.15149@metapro.DIALix.oz.au> Date: 26 Feb 91 04:10:34 GMT References: <1991Feb18.070424.6054@noose.ecn.purdue.edu> <6178@mentor.cc.purdue.edu> <5864@iron6.UUCP> Organization: MetaPro Systems, Perth, Western Australia Lines: 8 You could test to see if stdin is connceted to a tty! [ -t 0 ] && echo interactive -- Bernd Felsche, _--_|\ #include Metapro Systems, / sale \ Fax: +61 9 472 3337 328 Albany Highway, \_.--._/ Phone: +61 9 362 9355 Victoria Park, Western Australia v Email: bernie@metapro.DIALix.oz.au Brought to you by Super Global Mega Corp .com