From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18833 invoked by alias); 19 Jun 2012 19:13:14 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17147 Received: (qmail 29149 invoked from network); 19 Jun 2012 19:13:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: neutral (ns1.primenet.com.au: 209.85.215.171 is neither permitted nor denied by SPF record at ntlworld.com) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-proxyuser-ip:date:from:to:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=4zRT903dTa98oex2FYC8TevVXAUm9nlGY71O49Btzeo=; b=bfB/80Yeu/dUrVyaRMv/YblEYrL2MVE3nwNYbYV0ZXypvN/i3jBAoVaGGVpD3y2foO DcDvzOdmDKry0pDA/FvxrTFMRuKlhBFBAnSpk2OQarz6XD4XrynWVSfG844eMovquTrr Q9g2CbjC8kXVQwTC8UPiup1bYlS4+turLqhJQBB1tIuxsfk7ESx2fCqmnWiDG+7sSWOV c+cUEGwHlXn9qaWyJPhEwA1624k69mbZXcodhOb5XKGKgnOrDB8a9x7U81fiRQthAD0t AkTmLbWF9E7OCziD6VodOCYjN/bcxlfsSWM6sB7tY48Znitxmqdp391qtlpA6q6MnJOP DmTw== X-ProxyUser-IP: 86.6.29.42 Date: Tue, 19 Jun 2012 20:05:34 +0100 From: Peter Stephenson To: zsh-users@zsh.org Subject: Re: Lua / zsh problems Message-ID: <20120619200534.44590934@pws-pc.ntlworld.com> In-Reply-To: <20120619182724.GC3191@solfire> References: <20120619182724.GC3191@solfire> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQll+3lxQsqenx/wMtqvKlgma1N7JYrZ/U0eJZ94pyAZcsWP7lUtoDmajphtz0yctGl+xcTm meino.cramer@gmx.de 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 Web page now at http://homepage.ntlworld.com/p.w.stephenson/