lua-users home
lua-l archive

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


Matthew Percival wrote:
>
> Firstly, Lua seems to ignore the paths I set.  Even if I do:
>
>     set LUA_PATH=/usr/local/share/lua/5.0/?.lua;?.lua

and later:
>
> I have not worked out why, but for some reason the shell (ash) was 
> not exporting them to lua.

Because "set VAR=VALUE" is the MSDOS method to set variables.

In a Bourne shell you have to write:

        LUA_PATH="/usr/local/share/lua/5.0/?.lua;?.lua"
        export LUA_PATH

With modern versions you can combine that into a single statement:

        export LUA_PATH="/usr/local/share/lua/5.0/?.lua;?.lua"

Ciao, ET.