From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7890 invoked from network); 27 Nov 2005 14:06:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 27 Nov 2005 14:06:27 -0000 Received: (qmail 17551 invoked from network); 27 Nov 2005 14:06:21 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 27 Nov 2005 14:06:21 -0000 Received: (qmail 24833 invoked by alias); 27 Nov 2005 14:06:18 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22040 Received: (qmail 24823 invoked from network); 27 Nov 2005 14:06:17 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 27 Nov 2005 14:06:17 -0000 Received: (qmail 17207 invoked from network); 27 Nov 2005 14:06:17 -0000 Received: from mail.cql.com (216.217.47.170) by a.mx.sunsite.dk with SMTP; 27 Nov 2005 14:06:16 -0000 Received: from cobra.cql.com (135.47.217.216.transedge.com [216.217.47.135]) by mail.cql.com (Postfix) with ESMTP id 15C6F1CC06; Sun, 27 Nov 2005 09:21:07 -0500 (EST) Subject: Re: = completion From: Seth Kurtzberg Reply-To: seth@cql.com To: Andrey Borzenkov Cc: zsh-workers@sunsite.dk In-Reply-To: <200511271121.55108.arvidjaar@newmail.ru> References: <1133032949.29478.4.camel@localhost.localdomain> <200511271121.55108.arvidjaar@newmail.ru> Content-Type: text/plain Organization: CQL Date: Sun, 27 Nov 2005 09:06:15 -0500 Message-Id: <1133100375.29478.7.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit On Sun, 2005-11-27 at 11:21 +0300, Andrey Borzenkov wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Saturday 26 November 2005 22:22, Seth Kurtzberg wrote: > > > > In each of the following, however, tab completion does not work (that > > is, no completion occurs): > > > > export abc=/whatever:$abc (obviously I attempt tab completion > > before adding the :$abc) > > > > Works fine and with COMPLETE_IN_WORD set also in the middle of string > > > dd if=./whatever > > > > Of course works too. > > Which zsh version and completion style do you use? I am not sure if compctl > does what you want (I have not used it for years) but new compsys does. If > you have zsh 4.2.x, try > > autoload -U compinit; compinit Thanks much, this indeed took care of the problem. I didn't realize that this wasn't the default. I'll use the users list next time. > > to initialize completion system. > > > The latter is an example of using arg=/some/path which occurs for > > various commands, so dd is just an example and the question is not in > > any way specific to dd. > > > > It is. Completion is context-sensitive. It knows that export expects > (path-)assignment; that for dd if= has path as argument; but it has no way to > know this for arbitrary command "foo". While it is possible to fallback to > something like dd does, I am now sure it is good idea; you probably need it > only for several commands and it is likely zsh already includes suitable > completion for them. > > > I do have the options related to equals completion enabled. > > > > Which suggests you are using compctl. > > > I also tried this on a new install of linux > > This satement is meaningless :) Which distribution, which version? Some of > them may use compsys by default some not. Anyway, just try compinit as above > and if it works, try compinstall that will help you to setup new completion > system. > > BTW zsh-users would be more appropriate for such questions. > > - -andrey > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (GNU/Linux) > > iD8DBQFDiWyiR6LMutpd94wRAkHWAJ9eBvoUlJre1se/GdN0hJ5aw7wSrwCgsIgb > rK26xHma2Fcr9v1cxi5dPak= > =NVS1 > -----END PGP SIGNATURE----- >