Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!dimacs.rutgers.edu!seismo!ukma!rex!wuarchive!swbatl!dwn From: dwn@swbatl.sbc.com (David Neill-OKCy Mktg 405-278-4007) Newsgroups: comp.sys.3b1 Subject: Re: stty: : Not a typewriter Message-ID: <1991Mar13.133424.5603@swbatl.sbc.com> Date: 13 Mar 91 13:34:24 GMT References: <1495@das13.snide.com> <1991Mar12.171653.1645@fang.ATT.COM> Organization: Southwestern Bell Advanced Technology Laboratory Lines: 23 In article <1991Mar12.171653.1645@fang.ATT.COM> ebd@fang.ATT.COM (Elliot B Dierksen) writes: > >I have a solution that I got from Don Lashcomb (donlash@uncle.UUCP) because >it also happened with his enhanced cron. > >case "$-" in >*i*) stty splot ;; # only runs stty when in interactive mode >esac > >I already mailed that to Dave, but I thought it might be of interest to the >net in general. > A quick, dumb question that probably belongs in comp.unix.shell, where does the interactive (-i) flag get set? Does ksh set the flag after verifying whether or not it is interactive, or could this flag be mistakenly invoked from a script? -- name & address (this account) -> dwn@swbatl.sbc.com David Neill office -> 405-291-1990 -> ..texbell!oktext!mktco Mgr - Mktg.(SWBTCo) home -> 405-843-4464 -> ..texbell!oktext!frodo!david