[erlang-questions] Erlang Shell History: enabled.

Kostis Sagonas kostis@REDACTED
Tue Nov 22 00:05:45 CET 2011


On 11/21/11 20:31, Fred Hebert wrote:
> Oh yeah, in case anyone is wondering how invasive of a patch this is,
> this is the diff between the default R14B04 group.erl file and the new one:
>
> 35c35
> < put(line_buffer, proplists:get_value(line_buffer, Options,
> history:load())),
> ---
>  > put(line_buffer, proplists:get_value(line_buffer, Options, [])),
> 647d646
> < history:add(Line),
>
> Literally two lines changed, and it should not harm the current
> behaviour of the shell other than loading history.

The real evasiveness is of course not in these two lines but in that the 
name of the new module ('history') which may clash with similarly named 
files in many user applications.

Perhaps a name like 'shell_history' is more appropriate for the new module?

Kostis



More information about the erlang-questions mailing list