Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Lua / zsh problems
- X-seq: zsh-users 17147
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Lua / zsh problems
- Date: Tue, 19 Jun 2012 20:05:34 +0100
- In-reply-to: <20120619182724.GC3191@solfire>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20120619182724.GC3191@solfire>
meino.cramer@xxxxxx wrote:
> 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;/u
> sr/share/lua/5.1//?/init.lua;./?.lua;/usr/local/share/lua/5.1/?.lua;/usr/loca
> l/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'
Something's gone screwy in setting the path. What you're echoing back
is the exact command that should have set it, not what should be the
contents of the variable. I'd expect to see the error message
zsh: no matches found: /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
if the variable LUA_PATH contains that value and the shell is attempting
to use it as a glob pattern. You need to fix that before you'll get
a sane value.
Unless you have the globsubst option set, ?'s from a variable aren't
expanded. If you do have globsubst set, which behaves like other
shells, you should probably set the option nonomatch, too, which doesn't
complain if the expansion fails. Usually in zsh there's no reason to
set globsubst at all, however.
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author