[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Endless path and environment woes
- From: Sam Roberts <sroberts@...>
- Date: Fri, 2 Mar 2007 11:37:26 -0800
On Fri, Mar 02, 2007 at 11:27:49AM -0800, Tiogshi Laj wrote:
> The console snippet below describes the nature of this error in full, I
> suspect.
>
> [tiogshi@tiogshi-desktop ~/Programming/sim-lua]$ echo $LUA_PATH
> ;;./?.lc;./?.lua;/home/tiogshi/.lua/?.lua;/home/tiogshi/.lua/?.lc
>
> [tiogshi@tiogshi-desktop ~/Programming/sim-lua]$ lua
> Lua 5.1 Copyright (C) 1994-2006 Lua.org, PUC-Rio
> >print( os.getenv('LUA_PATH') )
> nil
> Any suggestions?
export LUA_PATH?
How to do so depends on your shell, with bash/zsh:
sroberts@pebble:~/ade/dev/ldr% lua5.1 -e "print(os.getenv('FOO'))"
nil
sroberts@pebble:~/ade/dev/ldr% FOO=that
sroberts@pebble:~/ade/dev/ldr% lua5.1 -e "print(os.getenv('FOO'))"
nil
sroberts@pebble:~/ade/dev/ldr% echo $FOO
that
sroberts@pebble:~/ade/dev/ldr% export FOO
sroberts@pebble:~/ade/dev/ldr% lua5.1 -e "print(os.getenv('FOO'))"
that