[erlang-bugs] multiple -name argument

PAILLEAU Eric <>
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  !!!
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  -name 
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().

2>
---8<---------------------------------------------------------------------------


More information about the erlang-bugs mailing list