Greg Klanderman wrote:
I hope there's someone on this list who can easily answer this
question off the top of their head. I'm thinking about re-writing the
parsing in pcl-cvs to parse stdout and stderr simultaneously,
rather than separately. I think this would make it much more robust.
Having looked at the code, and seeing some of the problems with it on
NT, I'd definitely agree.
Anyway the question is, if I redirect stdout and stderr as follows
(in /bin/sh):
% some_command > output.txt 2>&1
Why do you need to redirect the output, rather than just slurping it
into an XEmacs buffer and processing it there, either from the
process-filter or process-sentinel? Redirection is pretty broken on
Windows systems, so you might find this less robust than you hope.
Since the cvs messages themselves are always sensible (ie they don't
appear intermingled) it would also seem to me that this would remove the
worries about synchronisation. Unless someone has seen cvs produce
garbled output on a terminal :-)
Regards,
Malcolm