From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7765 invoked from network); 11 Mar 2005 05:14:43 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Mar 2005 05:14:43 -0000 Received: (qmail 20082 invoked from network); 11 Mar 2005 05:14:37 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Mar 2005 05:14:37 -0000 Received: (qmail 24144 invoked by alias); 11 Mar 2005 05:14:28 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8579 Received: (qmail 24122 invoked from network); 11 Mar 2005 05:14:27 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Mar 2005 05:14:27 -0000 Received: (qmail 18980 invoked from network); 11 Mar 2005 05:14:23 -0000 Received: from vms042pub.verizon.net (206.46.252.42) by a.mx.sunsite.dk with SMTP; 11 Mar 2005 05:14:20 -0000 Received: from candle.brasslantern.com ([4.11.1.68]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0ID6007JZ97U3TX1@vms042.mailsrvcs.net> for zsh-users@sunsite.dk; Thu, 10 Mar 2005 23:14:19 -0600 (CST) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j2B5EHkk009379 for ; Thu, 10 Mar 2005 21:14:17 -0800 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j2B5EHdS009378 for zsh-users@sunsite.dk; Thu, 10 Mar 2005 21:14:17 -0800 Date: Fri, 11 Mar 2005 05:14:17 +0000 From: Bart Schaefer Subject: Re: Ex-bash script for optimisation In-reply-to: <20050310.194249.41192134.Meino.Cramer@gmx.de> To: zsh-users@sunsite.dk Message-id: <1050311051417.ZM9377@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <20050310.194249.41192134.Meino.Cramer@gmx.de> Comments: In reply to Meino Christian Cramer "Re: Ex-bash script for optimisation" (Mar 10, 7:42pm) X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Mar 10, 7:42pm, Meino Christian Cramer wrote: } Subject: Re: Ex-bash script for optimisation Please start a new message with a new subject if you're asking a new question, rather than replying to an unrelated discussion re-using a misleading subject. Thank you. } I want to limit the expand function (that one called when pressing } TAB after entering for example "cd") It's important to know whether you really mean "expansion" or whether (as I suspect) you're asking about "completion". "Expansion" means you have something like a glob pattern, for example a*e, and you want the shell to replace it with file names that match the pattern, for example ankle apple argue. In general, expansion is not context-sensitive. "Completion" means you've typed part of a word -- usually a prefix -- and you want the shell to supply the rest of the word in a way that fits the context where the word appears. For example, directory names in the arguments of cd. } to file of the current working directory or in other words I want to } switch off the global search for expansion possibilities... This question is a bit mystifying because there normally is no "global search." One possibility is that you need to "unset cdpath", but it would help if you explained more about (1) whether you use "compinit" to set up completion or are using the built-in defaults, and (2) what happens when you press TAB that makes you think a "global" search is being done.