open_port cd PortSetting not working on windows
Davide Marquês
nesrait@REDACTED
Mon Dec 28 00:46:23 CET 2009
Hi all,
Just found out that the open_port {cd, Dir} PortSetting isn't working on
windows.
The following shell interaction show the problem in R13B03:
> Eshell V5.7.4 (abort with ^G)
> 1>
> open_port({spawn_executable,"d:/Projectos/ewgi_examples/priv/www/cgi_index/index.exe"},
> []).
> #Port<0.509>
> 2> open_port({spawn_executable,"./index.exe"},
> [{cd,"d:/Projectos/ewgi_examples/priv/www/cgi_index"}]).
> ** exception error: enoent
> in function open_port/2
> called as open_port({spawn_executable,"./index.exe"},
>
> [{cd,"d:/Projectos/ewgi_examples/priv/www/cgi_index"}])
> 3> cd("d:/Projectos/ewgi_examples/priv/www/cgi_index").
> d:/Projectos/ewgi_examples/priv/www/cgi_index
> ok
> 4> open_port({spawn_executable,"./index.exe"}, []).
> #Port<0.526>
>
Bug also spotted on R13B01/2.
Cheers,
Davide
More information about the erlang-bugs
mailing list