TTY testing 

# These expressions ...

-t STDIN
-t STDOUT
-t STDERR

# are equivalent to these ...

-t 0
-t 1
-t 2