HOW do you tell KSH is interactive ?

Jun Lu luj at gus17.ecn.purdue.edu
Fri Mar 1 05:38:09 AEST 1991


In article <1991Feb26.041034.15149 at metapro.DIALix.oz.au> bernie at metapro.DIALix.oz.au (Bernd Felsche) writes:
>You could test to see if stdin is connceted to a tty!
>
>[ -t 0 ] && echo interactive

Incorrect. You can easily see this by putting this line in a script file.

--
-- Jun Lu                          Internet:luj at ecn.purdue.edu          --
-- Aeronautics & Astronautics      Bitnet:  luj%ecn.purdue.edu at purccvm  --
-- Purdue University               UUCP:    pur-ee!luj                  -- 
-- W. Lafayette, IN 47907          Phone:317-494-9410  Fax:317-494-0307 --



More information about the Comp.unix.shell mailing list