Closed gar1t closed 8 years ago
Why are you using this syntax as opposed to any one of the following?
2> exec:run("/bin/echo", [sync, stdout]).
{ok,[{stdout,[<<"\n">>]}]}
3> exec:run(["/bin/echo"], [sync, stdout]).
{ok,[{stdout,[<<"\n">>]}]}
This is just an example to highlight the behavior - my goal here isn't to echo chars :)
A zero length argument is a valid argument and this behavior prohibits their use.
It's admittedly not a common case, but there are times when you may want to indicate that a particular argument exists positionally but is empty.
I pushed the fix that takes care of it.
Terrific - thanks!
Looking at ei++.hpp decodeString the change wasn't obvious to me.