actually the way to check for i/o redirection is to compare the stdin
/ stdout filenames to the stderr filename.  i forget the function call
at the moment (it's been a while) but the great thing about stderr is
that it is supposed to stay the same as the initial stdout throughout
a prog.
                          shades at mit-oz.arpa