n1cK
n1cK

Reputation: 368

Erlang shell ignoring parameters when using path add

erl -sname test –pa ./simple_cache/ebin used to work perfectly fine (and I'm in the correct dir), but now:

Eshell V11.1.5 
1> node().
nonode@nohost

Neither the net kernel is started nor the path is added. Doing so manually in the shell works though.

Upvotes: 2

Views: 83

Answers (2)

hanssv
hanssv

Reputation: 46

The dash in –pa is not a regular dash but something else. Some fancy formatting gone wrong before it was copied probably.

The –pa is code point (aka dash) (U+2013) and -sname is code point (U+002D) (aka hyphen-minus).

Upvotes: 3

n1cK
n1cK

Reputation: 368

Turns out the dashes in the command are different for whatever reason:

erl -sname test –pa ./simple_cache/ebin

The one before sname is slightly shorter, using that one turns out to solve the issue. my god.

Upvotes: 1

Related Questions