From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29960 invoked by alias); 19 Jun 2012 19:14:58 -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: 17148 Received: (qmail 18312 invoked from network); 19 Jun 2012 19:14:56 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: meino.cramer@gmx.de Cc: zsh-users@zsh.org Subject: Re: Lua / zsh problems In-Reply-To: <20120619182724.GC3191@solfire> (meino cramer's message of "Tue, 19 Jun 2012 20:27:24 +0200") References: <20120619182724.GC3191@solfire> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (gnu/linux) Date: Tue, 19 Jun 2012 21:03:06 +0200 Message-ID: <87vcinqg45.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain X-Df-Sender: [pbs]MDExNTM1 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;/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' You're probably setting the "prompt_subst" option, which is not the default. If you set it you need to double quote all parameters to avoid file name expansion. So you would do this: echo "$LUA_PATH" But really, why set that option? IMHO zsh fixes one of the biggest faults of POSIX shells by not expanding globs and by not IFS-splitting non-quoted string variables... unless you ask for it explicitly. If you like the POSIX like behaviour better you need to abide by its most important idiom too: Double-quote *EVERY* parameter you use, unless you *know* you want the non-quoted behaviour. > and lua does not find any extensions at all. I don't know why that is, though. The semicolons are correct as delimiters? Regards, Frank -- In protocol design, perfection has been reached not when there is nothing left to add, but when there is nothing left to take away. -- RFC 1925