home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / shell / 3475 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  853 b 

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