Re: shell test for stdout=stderr

2006-11-26 Thread Matthew Seaman
Robin Becker wrote: 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. You could try using fstat(1) to print out the open file

Re: shell test for stdout=stderr

2006-11-26 Thread Robin Becker
Matthew Seaman wrote: Robin Becker wrote: 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. You could try using fstat(1) to print