From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25549 invoked from network); 22 Mar 2007 10:36:00 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.8 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 22 Mar 2007 10:36:00 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 24966 invoked from network); 22 Mar 2007 10:35:55 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Mar 2007 10:35:55 -0000 Received: (qmail 334 invoked by alias); 22 Mar 2007 10:35:53 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23226 Received: (qmail 325 invoked from network); 22 Mar 2007 10:35:52 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 22 Mar 2007 10:35:52 -0000 Received: (qmail 24673 invoked from network); 22 Mar 2007 10:35:52 -0000 Received: from cluster-d.mailcontrol.com (217.69.20.190) by a.mx.sunsite.dk with SMTP; 22 Mar 2007 10:35:49 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly47d.srv.mailcontrol.com (MailControl) with ESMTP id l2MAZhJR016382 for ; Thu, 22 Mar 2007 10:35:48 GMT Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Thu, 22 Mar 2007 10:30:42 +0000 Date: Thu, 22 Mar 2007 10:30:42 +0000 From: Peter Stephenson To: Zsh hackers list Subject: Re: No completion of nice commands Message-Id: <20070322103042.7db09f0d.pws@csr.com> In-Reply-To: References: Organization: Cambridge Silicon Radio X-Mailer: Sylpheed version 2.2.10 (GTK+ 2.10.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 22 Mar 2007 10:30:42.0627 (UTC) FILETIME=[24B2A130:01C76C6D] X-Scanned-By: MailControl A-07-06-80 (www.mailcontrol.com) on 10.68.0.157 J=F6rg Sommer wrote: > the completion for commands they are passed as argument to nice does not > work if nice gets itself an argument. >=20 > % nice ls -- > > % nice -n4 ls -- > It works with "nice -n 4 ls --", but the case where the 4 is in the same word as the -n isn't handled. Index: Completion/Unix/Command/_nice =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_nice,v retrieving revision 1.1 diff -u -r1.1 _nice --- Completion/Unix/Command/_nice 9 Jul 2003 14:06:20 -0000 1.1 +++ Completion/Unix/Command/_nice 22 Mar 2007 10:29:00 -0000 @@ -3,7 +3,7 @@ shift words (( CURRENT-- )) =20 -if [[ $CURRENT -gt 1 && $words[1] =3D [-+](-|)<-> ]]; then +if [[ $CURRENT -gt 1 && $words[1] =3D ([-+](-|)|-n)<-> ]]; then shift words (( CURRENT -- )) elif [[ $CURRENT -gt 2 && $words[1] =3D -n ]]; then --=20 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 Relatio= ns page at http://ir.csr.com/csr/about/overview