[erlang-questions] os:cmd string parsing bug on Windows's erl

KukHyun Lee kukhyun@REDACTED
Fri Jun 27 03:39:42 CEST 2014


Hello,

erl on Windows7, os:cmd doesn't parse 'white-space'.

C:\>erl
Eshell V6.0  (abort with ^G)
1> os:cmd("c:/Program Files/test.exe").
'c:/Program' is not recognized as an internal or external command,
operable program or batch file.
[]

Same bug exist in escript. but no problem in werl.

C:\>werl
Erlang/OTP 17 [erts-6.0] [64-bit] [smp:4:4] [async-threads:10]

Eshell V6.0  (abort with ^G)
1> os:cmd("c:/Program Files/test.exe").
[]

Thanks,
KukHyun.



More information about the erlang-questions mailing list