From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8695 invoked from network); 14 May 2008 15:57:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 14 May 2008 15:57:14 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 98535 invoked from network); 14 May 2008 15:57:10 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 May 2008 15:57:10 -0000 Received: (qmail 16646 invoked by alias); 14 May 2008 15:57:06 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25030 Received: (qmail 16629 invoked from network); 14 May 2008 15:57:06 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 14 May 2008 15:57:06 -0000 Received: from equator.ru.net (equator.ru.net [194.58.105.39]) by bifrost.dotsrc.org (Postfix) with ESMTP id 1AAEB80ED172 for ; Wed, 14 May 2008 17:56:59 +0200 (CEST) Received: from localhost ([127.0.0.1]) by equator.ru.net with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JwJLf-00007l-0w for zsh-workers@sunsite.dk; Wed, 14 May 2008 19:56:59 +0400 Message-ID: <482B0BCA.9010207@sergio.spb.ru> Date: Wed, 14 May 2008 19:56:58 +0400 From: sergio User-Agent: Mozilla-Thunderbird 2.0.0.9 (X11/20080110) MIME-Version: 1.0 To: zsh-workers@sunsite.dk Subject: Re: functions/Completion/Linux/_modutils References: <4829BF7A.20203@sergio.spb.ru> <080513201714.ZM10079@torch.brasslantern.com> <482AF445.3080909@sergio.spb.ru> <20080514161834.0b96c7ac@news01> In-Reply-To: <20080514161834.0b96c7ac@news01> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: zsh@sergio.spb.ru X-SA-Exim-Scanned: No (on equator.ru.net); SAEximRunCond expanded to false X-Virus-Scanned: ClamAV 0.91.2/7121/Wed May 14 16:17:09 2008 on bifrost X-Virus-Status: Clean Peter Stephenson wrote: > Shouldn't the fix be something like this? > $(path=($path /sbin) hmm.. in root's path /sbin states before /bin so if i have two modprobes (in /bin and in /sbin) zsh will list modules with /bin/modprobe, while /sbin/modprobe will really executed by sudo i can't find any logic where zsh search command to complete after sudo (when i type sudo ) may be it will be more correctly to make some changes in sudo completion? > By the way, isn't that "_files" completion three lines below screwy? > Shouldn't it be looking for .ko files (or possibly .o files depending on > the version)? I'm newbie in zsh ): I don't understand this lines.. -- sergio