Re: luamatrix
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: luamatrix
- From: Dirk Laurie <dpl@...>
- Date: 2010年12月18日 17:42:51 +0200
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