saleyn / erlexec

Execute and control OS processes from Erlang/OTP
https://hexdocs.pm/erlexec/readme.html
Other
541 stars 141 forks source link

Wishlist: accept iolist() commands #45

Closed davidw closed 10 years ago

davidw commented 10 years ago

It'd be convenient, in some circumstances, to accept iolist() commands, rather than strings.

saleyn commented 10 years ago

This would present an issue, however, because currently takes two flavors of parameters: exec:run(List | String, Opts). The List can be a list of strings passed to the port, in which case it doesn't use "sh -c" to start the program, which it otherwise does with the String parameter. In case of an iolist() that distinction would not be possible, and require a separate Opt indicator, which is not so convenient.