Given two Erlang nodes, "foo@host" and "bar@host", the following produces a print-out on "foo":
(foo@host) rpc:call('bar@host', io, format, ["~p", [test]]).
While the following prints out on "bar":
(foo@host) rpc:call('bar@host', erlang, display, [test]).
Even if erlang:display/1 is supposed to be used for debug only, both functions are supposed to send stuff to the standard output. Each process should inherit the group leader from its parent, so I would expect that the two functions would behave in a consistent way.
Is there any rationale for the above behaviour?