[erlang-bugs] multiple -name argument

PAILLEAU Eric eric.pailleau@REDACTED
Tue Apr 29 00:03:29 CEST 2014


Hello,
I passed by mistake two time -name argument with different values (or 
same value with same result), and no error, erl is running with node set 
to nonode@REDACTED !!!
I wonder if this is really normal, and probably a possible dangerous and 
silent issue.
Is there a valid reason for such behavior ?
Do other erl arguments behave the same ?
generally speaking, I expect that the last same argument is the one used 
by a program.
I did not see anything related to this in 'erl' documentation, or missed it.
Regard


---8<---------------------------------------------------------------------------
# erl -name titi@REDACTED -name toto@REDACTED
Erlang/OTP 17 [erts-6.0] [source] [smp:2:2] [async-threads:10] [hipe] 
[kernel-poll:false]

Eshell V6.0  (abort with ^G)
1> node().
nonode@REDACTED
2>
---8<---------------------------------------------------------------------------



More information about the erlang-bugs mailing list