<pre style="margin-top:0px;margin-bottom:0px;padding:0px;border:0px;font-size:14px;font-family:Monaco,'Liberation Mono',Courier,monospace;max-width:100%;white-space:pre-wrap;color:rgb(89,96,99);background-color:rgb(230,241,246)">
Because of leeway in implementing os:cmd/1 under different OS there is
a difference in results when calling it with deep list
argument. os:cmd/1 specifies io_lib:chars() type for its argument and
io_lib functions can produce deep lists inspite of io_lib:chars()
result type specification. This commit flattens the argument for
erlang:open_port/2 (which is used under Windows) and expands the
os_SUITE to regress the bug.</pre><div><pre style="margin-top:15px;margin-bottom:15px;padding:6px 10px;border:1px solid rgb(204,204,204);font-size:13px;font-family:Consolas,'Liberation Mono',Courier,monospace;background-color:rgb(248,248,248);line-height:19px;overflow:auto;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;color:rgb(51,51,51)">
git fetch git://<a href="http://github.com/aleksandr-vin/otp.git">github.com/aleksandr-vin/otp.git</a> maint-fix-os-cmd-win</pre></div><div>or viewed here:</div><div><pre style="margin-top:15px;margin-bottom:15px;padding:6px 10px;border:1px solid rgb(204,204,204);font-size:13px;font-family:Consolas,'Liberation Mono',Courier,monospace;background-color:rgb(248,248,248);line-height:19px;overflow:auto;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;color:rgb(51,51,51)">
<a href="https://github.com/aleksandr-vin/otp/compare/maint-fix-os-cmd-win">https://github.com/aleksandr-vin/otp/compare/maint-fix-os-cmd-win</a>
<a href="https://github.com/aleksandr-vin/otp/compare/maint-fix-os-cmd-win.patch">https://github.com/aleksandr-vin/otp/compare/maint-fix-os-cmd-win.patch</a></pre></div><div>-- <br></div><div>Aleksandr Vinokurov</div><div>
+7 (921) 982-21-43</div><div>@aleksandrvin</div><br>