[PATCH] Make stdout hot

Toby Johnson toby at etjohnson.us
Wed Feb 7 10:41:38 EST 2007


Jonathan Perret wrote:
> Hello,
>
> Below is a one-line patch to vss2svn.pl that makes the
> script's standard output hot (unbuffered).
>
> As I mentioned in my last message (Suggested vss2svn workflow)
> I think vss2svn should always be run with the output
> (both STDOUT and STDERR) directed to a file. Unfortunately
> by default this leads Perl to buffer the script's messages to STDOUT.
>
> Since the script is not very consistent about writing
> to STDOUT vs. STDERR this results in messages occasionally
> coming out of order. Rather than scrubbing the script, this
> patch simply makes STDOUT behave like STDERR so that their
> outputs are correctly interleaved.
>   

Thanks Jonathan, I'll make your suggested change. My original intent was 
to have informative messages go to STDOUT and debugging info go to 
STDERR but I'm not sure that was correctly adhered to or communicated to 
anyone else (plus the distinction between the two is often subjective).

toby



More information about the vss2svn-users mailing list