"Gregory Brown" <gregory.t.brown / gmail.com> wrote/schrieb <b37300880708121440j4e26fd21g4048d05057615b5e / mail.gmail.com>:

> Are you looking to do this to test a codebase that writes to $stdout
> / $stderr?

It's rather about using someone else's code. I'd prefer not to modify
it, because otherwise I had to merge every update.

>   def print_to_stdout
>      @out.puts "something"
>   end
> 
>   def print_to_stderr
>     @err.puts "something"
>   end

Replacing ``puts'' by ``@out.puts'' is such a modification of foreign
code that I'd like to avoid.

Regards
  Thomas