bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

test -t some-file, etc.


From: Dan Jacobson
Subject: test -t some-file, etc.
Date: 08 Mar 2001 07:51:35 +0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

       -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 

Also, I was hoping the test 'help' and 'man' information would say what
happens when fd is ommitted, i.e. test -t
-- 
http://www.geocities.com/jidanni Tel886-4-25854780 e-mail:restore .com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]