From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 474 invoked from network); 26 Oct 2000 15:12:41 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 26 Oct 2000 15:12:41 -0000 Received: (qmail 23216 invoked by alias); 26 Oct 2000 15:12:32 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13092 Received: (qmail 23206 invoked from network); 26 Oct 2000 15:12:31 -0000 Message-ID: <20001026151229.1321.qmail@web1103.mail.yahoo.com> Date: Thu, 26 Oct 2000 08:12:29 -0700 (PDT) From: Felix Rosencrantz Subject: Writing multi-part command completion functions To: zsh-workers MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Is there a recommended way to deal with multi-part commands. For example, many of the source control systems cvs, rcs, sccs, and prcs all have a main command, with the first argument typically being a sub-command. Many times the sub-command can be abbreviated. There are already some completion functions that handle commands like this (e.g. _cvs). Is there a preferred way to do this? Is there one that provides a better example of how to structure such a completion function(s)? Would it make sense to add support to make it easier to write such a function? Thanks -FR. __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/