[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: bug in lua.c (Lua-5.0) while embedding the interpreter into bash-2.05
- From: "Weiguang Shi" <wgshizz@...>
- Date: Wed, 14 Mar 2007 16:10:29 -0800
There you have them, Lua 5.0 interpreter as builtin for zsh
http://www.cs.ualberta.ca/~wgshi/zsh-lua50-builtin.sh
and bash
http://www.cs.ualberta.ca/~wgshi/bash-lua50-builtin.sh
Cheers!
Wei
On 3/9/07, Weiguang Shi <wgshizz@gmail.com> wrote:
On 3/9/07, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> > My approach, however, is to include the standard Lua interpreter
> > itself into bash as a builtin.
>
> This is overkill. Lua was meant to be embeded into application; the standard
> interpreter is just an example. To embed Lua into a shell as you want,
> just create a Lua state, open some Lua libraries into it and then load
> and execute lines read from the user into it. --lhf
>
I don't know about overkill but it's so easy; I can't resist ;-)
Wei