On Thu, 2011-04-14 at 14:08 -0400, David Boyce wrote:
Of course, either way some context is lost. If you put both into one
temp file you lose track of which was which; if you keep them in
separate files you lose ordering instead. So it becomes a matter of
taste, or perhaps an option though that seems like a bit too much to
me.
I agree that adding an option seems like a lot.
I think it's more important to maintain ordering of stdout/stderr than
it is to allow individual redirection.
However, you could do both with some heuristics. Hm. Maybe not. I was
going to say you could merge them if stdout and stderr were going to the
same tty or file, but I don't think there's any good way in UNIX to know
whether two file descriptors are pointing at the same file/device. Hrm.
In Linux you can find out via /proc but that's a pretty special case.