[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: test -t some-file, etc.
From: |
Andreas Schwab |
Subject: |
Re: test -t some-file, etc. |
Date: |
08 Mar 2001 16:10:23 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.100 |
jidanni@kimo.FiXcomTHiS.tw (Dan Jacobson) writes:
|> -t fd True if file descriptor fd is open and refers to a
|> terminal.
|>
|> $? is found at char 1 of my next prompt:
|> 1/tmp$ test -t a
|> 0/tmp$ test -t addsds
|> 0/tmp$ test -t 11
|> 1/tmp$ test -t /dev/tty
|> 0/tmp$ test -t /dev/tty4
|> 0/tmp$ test -t /dev/tty4444444...
|> only the results for test -t 11 and test -t /dev/tty am I happy with
All tests except the third one (test -t 11) are apparently equivalent to
`test -t 0'.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5