<div dir="ltr"><div><div>Hello!</div><div><br></div><div>I noticed a difference in the output capturing mechanism in the Erlang 19 release.</div><div><br></div><div>It seems this new version captures output to STDERR too.</div><div><br></div><div>This is a testing perl code (in "<a href="http://perl_output_test.pl">perl_output_test.pl</a>"):<br></div><div><br></div><div><font face="monospace, monospace">print STDERR "Printed to STDERR\n";<br></font></div><div><font face="monospace, monospace">print STDOUT "Printed to STDOUT\n";</font></div></div><div><br></div><div><br></div><div>This is my Erlang code: </div><div><br></div><div><font face="monospace, monospace">os:cmd("<a href="http://perl_output_test.pl">perl_output_test.pl</a>").</font></div><div><br></div><div><br></div><div>Running in Windows 10:</div><div><br></div><div>Erlang 18:</div><div><br></div><div><div><font face="monospace, monospace">Eshell V7.3 (abort with ^G)</font></div><div><font face="monospace, monospace">1> os:cmd("<a href="http://perl_output_test.pl">perl_output_test.pl</a>").</font></div><div><font face="monospace, monospace">Printed to STDERR</font></div><div><font face="monospace, monospace">"Printed to STDOUT\r\n"</font></div><div><font face="monospace, monospace"><br></font></div></div><div><font face="monospace, monospace"><br></font></div><div>Erlang 19:<font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><div><font face="monospace, monospace">Eshell V8.0 (abort with ^G)</font></div><div><font face="monospace, monospace">1> os:cmd("<a href="http://perl_output_test.pl">perl_output_test.pl</a>").</font></div><div><font face="monospace, monospace">"Printed to STDERR\r\nPrinted to STDOUT\r\n"</font></div><div><font face="monospace, monospace"><br></font></div></div><div><br></div><div>-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Best regards,<div><br></div><div>Bohuslav Svancara</div></div></div>
</div>