Closed weiss closed 4 years ago
It is intended. It matches how erl_call
works.
But I now see that nodetool eval
will add a .
if it isn't there, which erl_call
does not do and we need to remove so that when people move to 23
they don't break their scripts.
It matches how erl_call works.
erl_call -a 'mod' 'fun' '[arg]'
works for me without trailing .
, though.
But I now see that nodetool eval will add a . if it isn't there, which erl_call does not do
Right, erl_call -e
insists on the .
(and when handing over an expression I'd kinda expect having to terminate it, whereas I didn't really expect having to append a .
to [arg]
).
Thanks, I'll look at that this morning.. I could have swore erl_call required the .
on the list. But if it doesn't, then I'll remove it from nodetool as well.
I thought I resolved this with a PR but when I look at the only dot based I've had recently it is https://github.com/erlware/relx/pull/806/files
Are they at least consistent now?
I think nodetool
was inconsistent with erl_call
in two ways:
myrel eval 'mod:fun(arg)'.
requires no trailing dot with nodetool
but with erl_call
.myrel rpc 'mod' 'fun' '[arg].'
requires the trailing dot with nodetool
but not with erl_call
.Ok, so need to add an automatic inclusion of the period to the rpc args so it isn't required.
Thank you for the fix! I guess this issue can be closed?
With OTP 22.x (i.e., with
nodetool
; I didn't test OTP 23.x):However,
myrel eval 'mod:fun(arg)'
is happy without trailing dot. Is this intended?