lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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