Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Lua / zsh problems



Hi,

the Lua programming language uses a module/extensions manager called
"luarocks", which installs extensions like cpan does for perl.
These extensions are called "rocks".

To instruct lua, where to search for the extensions, one has
to define the environment variable called "LUA_PATH", which 
could for example look like this:

LUA_PATH='/usr/lib64/lua/luarocks/share/lua/5.1//?.lua;/usr/lib64/lua/luarocks/share/lua/5.1//?/init.lua;/usr/share/lua/5.1//?.lua;/usr/share/lua/5.1//?/init.lua;/usr/lib64/lua/luarocks/share/lua/5.1//?.lua;/usr/lib64/lua/luarocks/share/lua/5.1//?/init.lua;/usr/share/lua/5.1//?.lua;/usr/share/lua/5.1//?/init.lua;./?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/5.1/?/init.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua

The "?" are no type but are placeholders for the name of
the extension to load.

But...

zsh tries to play its magic with these "?"s. 

    echo $LUA_PATH 

gives:

zsh: no matches found: LUA_PATH='/usr/lib64/lua/luarocks/share/lua/5.1//?.lua;/usr/lib64/lua/luarocks/share/lua/5.1//?/init.lua;/usr/share/lua/5.1//?.lua;/usr/share/lua/5.1//?/init.lua;/usr/lib64/lua/luarocks/share/lua/5.1//?.lua;/usr/lib64/lua/luarocks/share/lua/5.1//?/init.lua;/usr/share/lua/5.1//?.lua;/usr/share/lua/5.1//?/init.lua;./?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/5.1/?/init.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua'

and lua does not find any extensions at all.

I tried a lot backslashing, quoting and such to as
prevent zsh from do something special with those "?"s 
as pass the pure "?" to lua...and no "\?" which in turn
Lua does not understand...
But with no success...

How can I fix this problem?

Thank you very much in advance for
any help!
Best regards,
mcc





Messages sorted by: Reverse Date, Date, Thread, Author