From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2586 invoked from network); 28 Apr 2004 13:06:58 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by ns1.primenet.com.au with SMTP; 28 Apr 2004 13:06:58 -0000 Received: (qmail 3917 invoked from network); 28 Apr 2004 13:06:44 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Apr 2004 13:06:44 -0000 Received: (qmail 25315 invoked by alias); 28 Apr 2004 13:06:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19844 Received: (qmail 25276 invoked from network); 28 Apr 2004 13:06:41 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 28 Apr 2004 13:06:41 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.225.247.86] by sunsite.dk (MessageWall 1.0.8) with SMTP; 28 Apr 2004 13:6:40 -0000 Received: (qmail 1541 invoked from network); 28 Apr 2004 13:05:20 -0000 Received: from acolyte.scowler.net (216.254.112.45) by a.mx.sunsite.dk with SMTP; 28 Apr 2004 13:05:18 -0000 Received: by acolyte.scowler.net (Postfix, from userid 1000) id 02A1870047; Wed, 28 Apr 2004 09:04:49 -0400 (EDT) Date: Wed, 28 Apr 2004 09:04:49 -0400 From: Clint Adams To: zsh-workers@sunsite.dk Cc: Steve Kowalik , 246305-forwarded@bugs.debian.org Subject: Re: Bug#246305: zsh: completion for sudo doesn't add commands under root's path Message-ID: <20040428130449.GA3198@scowler.net> References: <877jw0gzp3.wl@broken.int.wedontsleep.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877jw0gzp3.wl@broken.int.wedontsleep.org> User-Agent: Mutt/1.5.5.1+cvs20040105i X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-0.9 required=6.0 tests=BAYES_10 autolearn=no version=2.63 X-Spam-Hits: -0.9 > Trying to tab complete 'sudo modprobe' never works, as modprobe is > never added into the list of completions. Would it be better to do something like this (PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin ; rehash; print $commands) or glob for executable files in that path or is there a better solution?