From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6387 invoked from network); 28 Apr 2004 19:25:24 -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 19:25:24 -0000 Received: (qmail 27754 invoked from network); 28 Apr 2004 19:25:15 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Apr 2004 19:25:15 -0000 Received: (qmail 27408 invoked by alias); 28 Apr 2004 19:25:13 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19847 Received: (qmail 27395 invoked from network); 28 Apr 2004 19:25:13 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 28 Apr 2004 19:25:13 -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 19:25:12 -0000 Received: (qmail 27585 invoked by uid 1002); 28 Apr 2004 19:25:12 -0000 Received: from wbar3.sjo1-4-11-009-147.sjo1.dsl-verizon.net (HELO candle.brasslantern.com) (4.11.9.147) by a.mx.sunsite.dk with SMTP; 28 Apr 2004 16:02:08 -0000 Received: (from schaefer@localhost) by candle.brasslantern.com (8.11.6/8.11.6) id i3SG26Z29343; Wed, 28 Apr 2004 09:02:06 -0700 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to schaefer@closedmail.com using -f From: Bart Schaefer Message-Id: <1040428160206.ZM29342@candle.brasslantern.com> Date: Wed, 28 Apr 2004 16:02:06 +0000 In-Reply-To: <20040428130449.GA3198@scowler.net> Comments: In reply to Clint Adams "Re: Bug#246305: zsh: completion for sudo doesn't add commands under root's path" (Apr 28, 9:04am) References: <877jw0gzp3.wl@broken.int.wedontsleep.org> <20040428130449.GA3198@scowler.net> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.dk Subject: Re: Bug#246305: zsh: completion for sudo doesn't add commands under root's path Cc: 246305-forwarded@bugs.debian.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Status: Yes, hits=7.7 required=6.0 tests=BAYES_40,RCVD_IN_DYNABLOCK, RCVD_IN_NJABL,RCVD_IN_NJABL_DIALUP,RCVD_IN_SORBS autolearn=no version=2.63 X-Spam-Hits: 7.7 On Apr 28, 9:04am, Clint Adams wrote: } } (PATH="root's:path:for:sudo"; rehash; print $commands) } } or glob for executable files in that path or is there a better solution? How about: local -a +h commands path path=( ... ) compadd -a commands The more interesting question, I think, would be where to get an accurate value for root's sudo path without first being root.