From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1852 invoked from network); 2 Aug 2005 18:02:42 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 2 Aug 2005 18:02:42 -0000 Received: (qmail 39332 invoked from network); 2 Aug 2005 18:02:34 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 2 Aug 2005 18:02:33 -0000 Received: (qmail 12674 invoked by alias); 2 Aug 2005 18:02:25 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9212 Received: (qmail 12664 invoked from network); 2 Aug 2005 18:02:25 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 2 Aug 2005 18:02:25 -0000 Received: (qmail 38233 invoked from network); 2 Aug 2005 18:02:25 -0000 Received: from lila.akte.de (213.239.211.75) by a.mx.sunsite.dk with SMTP; 2 Aug 2005 18:02:20 -0000 Received: (root@lila.akte.de) by lila.akte.de id ; Tue, 2 Aug 2005 20:02:06 +0200 KRecCount: 1 KInfo: virscan ok KInfo: !spam auth Received: from condor.int.spiegl.de (p54977B78.dip.t-dialin.net [84.151.123.120]) by lila.akte.de via kasmail (2.9) id <1E015V-2Wv-0-lila>; Tue, 02 Aug 2005 18:02:01 GMT Received: from condor.int.spiegl.de (spiegl@localhost [127.0.0.1]) by condor.int.spiegl.de (8.13.4/8.13.4/Debian-3) with ESMTP id j72I20RQ010952 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 2 Aug 2005 20:02:00 +0200 Received: (from spiegl@localhost) by condor.int.spiegl.de (8.13.4/8.13.4/Submit) id j72I1wBF010947 for zsh-users@sunsite.dk; Tue, 2 Aug 2005 20:01:58 +0200 X-Authentication-Warning: condor.int.spiegl.de: spiegl set sender to zsh.Andy@spiegl.de using -f Date: Tue, 2 Aug 2005 20:01:58 +0200 From: Andy Spiegl To: zsh-users@sunsite.dk Subject: simple completion example? Message-ID: <20050802180158.GA10402@spiegl.de> Mail-Followup-To: zsh-users@sunsite.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-PGP-GPG-Keys: mail -s "send pgp" auto@spiegl.de X-Accepted-File-Formats: ASCII OpenOffice .rtf .pdf - *NO* Microsoft files please. X-why-you-shouldnt-use-MS-LookOut: http://www.jensbenecke.de/l-oe-en.php X-warum-man-MS-Outlook-vermeiden-sollte: http://www.jensbenecke.de/l-oe-de.php X-Message-Flag: LookOut! You are using an insecure mail reader which can be used to spread viruses. X-how-to-quote: http://learn.to/quote/ X-how-to-ask-questions: http://www.catb.org/~esr/faqs/smart-questions.html X-stupid-disclaimers: http://goldmark.org/jeff/stupid-disclaimers/ User-Agent: Mutt/1.5.5.1+cvs20040105i X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.4 Hi, I am looking for an easy example of a completion script so that I can start understanding and programming a little bit more complicated one for a perl script. It that takes the usual --help, --debug, --dir options but also needs a command (view, dump, export, demux, ...) and then one or more files (*.crid) from a directory. I tried to start with _apt because it also uses "commands" but it's way to complicated for a beginner like me. :-) If anyone is interested the skript is here: http://spiegl.de/andy/shareware/gigaset Thanks, Andy. -- o _ _ _ ------- __o __o /\_ _ \\o (_)\__/o (_) -o) ----- _`\<,_ _`\<,_ _>(_) (_)/<_ \_| \ _|/' \/ /\\ ---- (_)/ (_) (_)/ (_) (_) (_) (_) (_)' _\o_ _\_v ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Cats aren't dirty, they're just covered with cat spit."