Search code examples
erlangerlang-shell

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.


Solution

  • 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).