This is a CVS demo script for this question posted by Paul Bunch on Stack Overflow.
The cvs annotate
command prints a message on standard error of the form:
Annotations for hello.txt
***************
The questioner is trying to redirect that message when invoking cvs annotate
from a Perl script. I have so far been unable to reproduce the problem. I ask Paul Bunch to try running this script on his own system.
cvs-test
is a Perl script that creates a temporary directory, then creates a CVS repo under it. It runs a cvs annotate
command, similar to the one in Paul's question. If it works correctly (as it does on my system), the message Annotations for hello.txt
should appear as the contents of hello.txt.err
.