[erlang-questions] Some ideas for the shell.

Vance Shipley vances@REDACTED
Mon Dec 4 12:36:46 CET 2017


On Mon, Dec 4, 2017 at 4:18 PM, Pierre Fenoll <pierrefenoll@REDACTED> wrote:
> Since some things may be undesirable on production REPLs, maybe a flag that
> can be set from a rebar3 profile can help toggle some features thus allowing
> more enhancements for dev REPLs.

A little known feature is the Restricted Shell:
http://erlang.org/doc/man/shell#id262296
which allows you to tailor what can and cannot be run from the shell.

The shell_default is also handy as it allows you to create your own
short form commands (no module name):
http://erlang.org/doc/man/shell_default.html

Create an erl alias which add the '+Bi' argument and you can have a
quasi-safe REPL for non-programmer operators.


-- 
     -Vance



More information about the erlang-questions mailing list