From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8178 invoked by alias); 15 Feb 2011 18:51:07 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28761 Received: (qmail 8511 invoked from network); 15 Feb 2011 18:51:04 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at ntlworld.com designates 81.103.221.48 as permitted sender) Date: Tue, 15 Feb 2011 18:50:47 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: zsh autocompletion not quite right for "sccs delget" Message-ID: <20110215185047.0b3c9e68@pws-pc.ntlworld.com> In-Reply-To: <4D5810D7.5060608@oracle.com> References: <4D5810D7.5060608@oracle.com> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.0; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Cloudmark-Analysis: v=1.1 cv=R50lirqlHffDPPkwUlkuVa99MrvKdVWo//yz83qex8g= c=1 sm=0 a=Tk9e3nL3h-IA:10 a=kj9zAlcOel0A:10 a=yPCof4ZbAAAA:8 a=NLZqzBF-AAAA:8 a=4xzC5gTzAqZkguU2weAA:9 a=aykKNZXqEHiHyr-pKxMn3Gber7cA:4 a=CjuIK1q_8ugA:10 a=7DSvI1NPTFQA:10 a=_dQi-Dcv4p4A:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 On Sun, 13 Feb 2011 12:11:51 -0500 Sebastien Roy wrote: > I'm running zsh 4.3.10, and the "sccs delget " command doesn't do > autocompletion on the file argument. Presumably the fix is something like the following, though I never use sccs and don't really know what the different file completions are, and it's using _arguments slightly differently from the way most functions do. Index: Completion/Unix/Command/_sccs =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_sccs,v retrieving revision 1.6 diff -p -u -r1.6 _sccs --- Completion/Unix/Command/_sccs 21 Jan 2004 13:53:29 -0000 1.6 +++ Completion/Unix/Command/_sccs 15 Feb 2011 18:48:32 -0000 @@ -109,7 +109,9 @@ case $service in sact|print) _sccs_files;; create|enter) _files;; deledit|delget|delta) - _arguments '-s[silent]' '-y+[specify delta commentary]:comment' + _arguments "$sfiles" \ + '-s[silent]' \ + '-y+[specify delta commentary]:comment' \ ;; diffs) _diff_options diff "$sfiles" "$ropt" "$copt" \ -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/