[erlang-questions] idea: ml9 (sort of) in the erlang shell
Ulf Wiger
ulf@REDACTED
Thu Nov 22 23:14:36 CET 2007
Oh, I should also mention that I've tried to make the changes as
safe as possible. The extended shell handling is actually triggered
as an evaluated command, like this:
{[{call,_,{atom,_,raw_exprs},
[AbstEnv, AbstText]}],_V,_CommandN}
The raw_exprs/2 function is then evaluated (and can be blocked in the
restricted shell), so if there are bugs in the code that follows, it's
similar to a normal crash in evaluated code. It doesn't kill the whole
shell.
The error handling for the output filters can and should be improved.
Right now, a badly written filter can cause the shell to terminate.
It should be a rather easy fix, once one decides what /should/ happen
when an output filter crashes.
BR,
Ulf W
2007/11/22, Ulf Wiger <ulf@REDACTED>:
> Hmm, at least not tonight, but the full modules are available at
> svn co http://svn.ulf.wiger.net/ext_shell/trunk/ext_shell/src/
>
> (You can fetch them using any browser if you don't have subversion)
>
> They are based on R11B.
>
> BR,
> Ulf W
>
> 2007/11/22, Alex Arnon <alex.arnon@REDACTED>:
> > Hi Ulf,
> >
> > This looks like fantastic stuff!
> > Can you provide the code as a patch to the standard distribution?
> > (R11B5 or R12's snapshot?)
> >
> >
> > On Nov 21, 2007 5:08 PM, Ulf Wiger <ulf@REDACTED> wrote:
> > > I've now written two blog articles on the subject.
> > >
> > > http://ulf.wiger.net/weblog/?p=8
> > > http://ulf.wiger.net/weblog/?p=9
> > >
> > > The code is also available at http://svn.ulf.wiger.net/ext_shell/trunk
> > >
> > >
> > > BR,
> > > Ulf W
> > > _______________________________________________
> > > erlang-questions mailing list
> > > erlang-questions@REDACTED
> > > http://www.erlang.org/mailman/listinfo/erlang-questions
> > >
> >
>
More information about the erlang-questions
mailing list