[erlang-questions] os:cmd - changed output capture in Erlang 19?
Bohuslav Svancara
bsvancara@REDACTED
Mon Jun 27 15:04:13 CEST 2016
Hello!
I noticed a difference in the output capturing mechanism in the Erlang 19
release.
It seems this new version captures output to STDERR too.
This is a testing perl code (in "perl_output_test.pl"):
print STDERR "Printed to STDERR\n";
print STDOUT "Printed to STDOUT\n";
This is my Erlang code:
os:cmd("perl_output_test.pl").
Running in Windows 10:
Erlang 18:
Eshell V7.3 (abort with ^G)
1> os:cmd("perl_output_test.pl").
Printed to STDERR
"Printed to STDOUT\r\n"
Erlang 19:
Eshell V8.0 (abort with ^G)
1> os:cmd("perl_output_test.pl").
"Printed to STDERR\r\nPrinted to STDOUT\r\n"
--
Best regards,
Bohuslav Svancara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160627/4e2731ba/attachment.htm>
More information about the erlang-questions
mailing list