shell test for stdout=stderr

Robin Becker robin at reportlab.com
Sat Nov 25 15:17:28 PST 2006


Is there a way for a shell script to test if 2> is the same as 1>? I 
want to put messages in both when they are connected to different files, 
but would like to avoid duplicating the message when they are the same.
-- 
Robin Becker


More information about the freebsd-questions mailing list