[erlang-questions] Writing my own REPL

Attila Babo <>
Fri Sep 26 23:55:16 CEST 2008


Your init function returns immediately then you asked for init:stop()
so Erlang quits as you ordered. What's wrong with a simple REPL cycle
using your code like this:
  erl -noshell -s myshell loop  -s init stop

Take a look at LFE (git://github.com/rvirding/lfe.git), it works as expected:
  erl -noshell -s lfe_shell server -s init stop -pa ebin



More information about the erlang-questions mailing list