[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luamatrix
- From: Paulo Pizarro <paulo.pizarro@...>
- Date: Tue, 15 Mar 2011 07:05:00 -0300
Legal
2010/12/18, Dirk Laurie <dpl@sun.ac.za>:
> 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
>
>