From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7555 invoked from network); 20 Oct 2000 16:57:46 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 20 Oct 2000 16:57:46 -0000 Received: (qmail 13700 invoked by alias); 20 Oct 2000 16:57:41 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13053 Received: (qmail 13692 invoked from network); 20 Oct 2000 16:57:41 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer goliath.siemens.de) From: "Andrej Borsenkow" To: "E. Jay Berkenbilt" Cc: Subject: RE: still confused about completion and matching Date: Fri, 20 Oct 2000 20:57:37 +0400 Message-ID: <000401c03ab6$d95b92d0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: <200010201638.MAA12172@soup.ql.org> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 The single remaining command I used to have a > programmable completion for in tcsh that I don't in zsh is smbclient. > I plan to eventually write a completion function for smbclient and > submit it. This should be much simpler than this _path_files stuff, > especially if I read Etc/completion-style-guide. > Good move I say. Well, look at the _arguments, it should be enough. There are plenty of examples - most of completion functions now-a-days are implemented using this great tool. The only problem I forsee is, that smbclient has options after arguments (at least, that is how they are listed in man pages). _arguments normally expect reverse order. But I do not know, if smbclient really requires it, and am too lazy to look in sources :-) Also, if you could send comments (or even patches) for _arguments documentation ... Of course, completing server and share names is a bit demanding ... but it is well possible in Zsh. -andrej