From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5924 invoked from network); 12 Aug 2008 10:45:41 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) 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.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 12 Aug 2008 10:45:41 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 73327 invoked from network); 12 Aug 2008 10:45:33 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Aug 2008 10:45:33 -0000 Received: (qmail 16118 invoked by alias); 12 Aug 2008 10:45:27 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25440 Received: (qmail 16103 invoked from network); 12 Aug 2008 10:45:26 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 12 Aug 2008 10:45:26 -0000 Received: from cluster-g.mailcontrol.com (cluster-g.mailcontrol.com [208.87.233.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id B6BB080EA0B3 for ; Tue, 12 Aug 2008 12:45:19 +0200 (CEST) Received: from cameurexb01.EUROPE.ROOT.PRI ([193.128.72.68]) by rly15g.srv.mailcontrol.com (MailControl) with ESMTP id m7CAj3oo017103 for ; Tue, 12 Aug 2008 11:45:04 +0100 Received: from news01 ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Tue, 12 Aug 2008 11:44:57 +0100 Date: Tue, 12 Aug 2008 11:44:57 +0100 From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: [solaris] completion function for zone* Message-ID: <20080812114457.2c0b78ff@news01> In-Reply-To: <20080812085748.GA28714@kaoru.asyd.net> References: <20080812085748.GA28714@kaoru.asyd.net> Organization: CSR X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Aug 2008 10:44:57.0435 (UTC) FILETIME=[7676BAB0:01C8FC68] X-Scanned-By: MailControl A-08-50-03 (www.mailcontrol.com) on 10.71.0.125 X-Virus-Scanned: ClamAV 0.92.1/8018/Tue Aug 12 10:36:31 2008 on bifrost X-Virus-Status: Clean On Tue, 12 Aug 2008 10:57:48 +0200 Bruno Bonfils wrote: > I wrote a completion function for solaris's 10+ zones management > function, the function is available here : > > http://svn.asyd.net/svn/zsh/trunk/functions/_zones > > feel free to add/modify it > > cheers Thanks. It shouldn't define functions that don't begin with "_"; this violates the completion system's guarantee about the namespace. You also need to invoke _zones "$@" at the end so that it works the first time. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070