home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!mintaka.lcs.mit.edu!ai-lab!life.ai.mit.edu!friedman
- From: friedman@gnu.ai.mit.edu (Noah Friedman)
- Newsgroups: comp.unix.shell
- Subject: Re: isatty in Korn shell
- Message-ID: <FRIEDMAN.92Aug13050350@nutrimat.gnu.ai.mit.edu>
- Date: 13 Aug 92 09:03:50 GMT
- References: <683mp4q.bryan@netcom.com>
- Sender: news@ai.mit.edu
- Organization: Free Software Foundation, 675 Mass Ave. Cambridge, MA 02139
- Lines: 6
- In-reply-to: bryan@netcom.com's message of 11 Aug 92 23:15:26 GMT
-
- In article <683mp4q.bryan@netcom.com> bryan@netcom.com (Bryan Higgins) writes:
- >How can I test in a Korn Shell script if standard input is a tty?
-
- At least some versions of ksh have a builtin test with a `-t' operator
- that accepts a file descripter as an argument. Stdin is `0'. For more
- information, read your man page.
-