[erlang-patches] Deep list argument error under Windows in os:cmd/1

Aleksandr Vinokurov <>
Thu Nov 22 09:02:47 CET 2012


Hi all,

Maybe I'm doing smth. wrong -- why there is no reply to my patch?

WBR,
Aleksandr Vinokurov


On 8 November 2012 14:11, Aleksandr Vinokurov <>wrote:

> 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.
>
> git fetch git://github.com/aleksandr-vin/otp.git maint-fix-os-cmd-win
>
> or viewed here:
>
> https://github.com/aleksandr-vin/otp/compare/maint-fix-os-cmd-winhttps://github.com/aleksandr-vin/otp/compare/maint-fix-os-cmd-win.patch
>
> --
> Aleksandr Vinokurov
> +7 (921) 982-21-43
> @aleksandrvin
>
>


-- 
Александр Винокуров
+7 (921) 982-21-43
@aleksandrvin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20121122/3926aa8a/attachment.html>


More information about the erlang-patches mailing list