From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2517 invoked from network); 14 May 2008 16:20:08 -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=AWL,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 16:20:08 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 6411 invoked from network); 14 May 2008 16:20:01 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 May 2008 16:20:01 -0000 Received: (qmail 989 invoked by alias); 14 May 2008 16:19:57 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25031 Received: (qmail 975 invoked from network); 14 May 2008 16:19:56 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 14 May 2008 16:19:56 -0000 Received: from equator.ru.net (equator.ru.net [194.58.105.39]) by bifrost.dotsrc.org (Postfix) with ESMTP id 9F07C80ED172 for ; Wed, 14 May 2008 18:19:49 +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 1JwJhj-0000i9-Td for zsh-workers@sunsite.dk; Wed, 14 May 2008 20:19:47 +0400 Message-ID: <482B1123.5050206@sergio.spb.ru> Date: Wed, 14 May 2008 20:19:47 +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> <080514085511.ZM11897@torch.brasslantern.com> In-Reply-To: <080514085511.ZM11897@torch.brasslantern.com> 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 Bart Schaefer wrote: > I can't advocate breaking _modutils (and everything else, one at a time) > for all ordinary cases, just to fix this for "sudo". So how about this? > > % zstyle :complete:sudo: environ \ > PATH="/sbin:/usr/sbin:$PATH" HOME="/root" > % sudo modprobe Hmm.. How zsh searches command when I type 'sudo ' It will be better to get $path from that logic. > Of course it would be preferable if "sudo -H /tmp/foo" would export > HOME=/tmp/foo, and if the style could be specialized to the target > user for "sudo -u" and so on, but I'm not prepared to go that far > overboard just now. But it's not very difficult.. ? (: -- sergio