lua-users home
lua-l archive

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


On Fri, Dec 17, 2010 at 09:19:44PM +0200, Patrick Rapin wrote:
> >    alias lua="lua -i ~/.luarc"
> 
> Instead of the alias, you can also define the environment variable
> LUA_INIT to the value "@~/.luarc" (without the quotes).
> 
This doesn't work for me (Lua 5.2 compiled on Ubuntu Lucid), but

    export LUA_INIT=@$HOME/.luarc

does. Reason: Lua IO does not know about '~' (non-ANSI), but
$HOME is expanded to an absolute path.

Dirk