From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8315 invoked from network); 15 May 2007 16:23:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.0 (2007-05-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=no version=3.2.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 15 May 2007 16:23:46 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 5548 invoked from network); 15 May 2007 16:23:40 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 May 2007 16:23:40 -0000 Received: (qmail 447 invoked by alias); 15 May 2007 16:23:33 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11487 Received: (qmail 421 invoked from network); 15 May 2007 16:23:32 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 15 May 2007 16:23:32 -0000 Received: (qmail 4175 invoked from network); 15 May 2007 16:23:32 -0000 Received: from cluster-d.mailcontrol.com (217.69.20.190) by a.mx.sunsite.dk with SMTP; 15 May 2007 16:23:28 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly23d.srv.mailcontrol.com (MailControl) with ESMTP id l4FGMCm5020756 for ; Tue, 15 May 2007 17:23:24 +0100 Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Tue, 15 May 2007 17:23:21 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.8/8.13.4) with ESMTP id l4FGNLGk014037 for ; Tue, 15 May 2007 17:23:21 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.8/8.13.8/Submit) with ESMTP id l4FGNL0l014034 for ; Tue, 15 May 2007 17:23:21 +0100 Message-Id: <200705151623.l4FGNL0l014034@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-users@sunsite.dk Subject: Re: Completion In-reply-to: <82839db60705150827u6c2d4397hb4dfb1e1968a3f9c@mail.gmail.com> References: <82839db60705150827u6c2d4397hb4dfb1e1968a3f9c@mail.gmail.com> Comments: In-reply-to "Anonymous bin ich" message dated "Tue, 15 May 2007 17:27:31 +0200." Date: Tue, 15 May 2007 17:23:21 +0100 From: Peter Stephenson X-OriginalArrivalTime: 15 May 2007 16:23:21.0514 (UTC) FILETIME=[5AAF10A0:01C7970D] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-07-07-00 (www.mailcontrol.com) on 10.68.0.133 "Anonymous bin ich" wrote: > I want to add a completion which lists only those files/directories which > belong to a certain user(s). Is it possible? It *should* be possible to do something like this: _files_belonging_to_pws() { _path_files -g '*(#qu:pws:)'; } This basically works, but you'll find that the completion system adds directories belonging to all users behind your back. A quick search suggests this is all part of the undocumented complexity of _path_files in at least two different ways, so I didn't look further. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview