greg wrote:

> sorry, misread some perl stuff.
> 
> How about a global flag or constant
> like $PIPE set to true if there is a pipe, and otherwise set to false?

Are you asking whether this is true, or whether it would be a good idea? If
the latter, I personally think stuff like this should be explicitly coded
by the programmer. There are situations where detecting the
presence/absence of a pipe may have side effects best avoided.

Of course, reasonable people may (will) differ.

-- 
Paul Lutus
http://www.arachnoid.com