Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!bellcore!texbell!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.unix.wizards Subject: Re: Detecting Pipe Using Bourne Shell Message-ID: <3766@ficc.uu.net> Date: 8 Apr 89 14:57:37 GMT References: <18992@adm.BRL.MIL> <8385@xanth.cs.odu.edu> Organization: Xenix Support Lines: 11 if [ -t 0 ] then : input is a terminal, display the menu. else : input is a file or pipe, sklorb up some names. fi -- Peter da Silva, Xenix Support, Ferranti International Controls Corporation. Business: uunet.uu.net!ficc!peter, peter@ficc.uu.net, +1 713 274 5180. Personal: ...!texbell!sugar!peter, peter@sugar.hackercorp.com.