From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26121 invoked from network); 10 Feb 2006 07:42:51 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO,RCVD_NUMERIC_HELO autolearn=no version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 10 Feb 2006 07:42:51 -0000 Received: (qmail 86441 invoked from network); 10 Feb 2006 07:42:44 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 10 Feb 2006 07:42:44 -0000 Received: (qmail 15852 invoked by alias); 10 Feb 2006 07:42:35 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9899 Received: (qmail 15842 invoked from network); 10 Feb 2006 07:42:34 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 10 Feb 2006 07:42:34 -0000 Received: (qmail 85257 invoked from network); 10 Feb 2006 07:42:34 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by a.mx.sunsite.dk with SMTP; 10 Feb 2006 07:42:32 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1F7Sut-0003Lc-S5 for zsh-users@sunsite.dk; Fri, 10 Feb 2006 08:42:08 +0100 Received: from 194.96.178.23 ([194.96.178.23]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Feb 2006 08:42:07 +0100 Received: from stefan by 194.96.178.23 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Feb 2006 08:42:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Stefan =?iso-8859-1?Q?Reich=F6r?= Subject: directory completion for a function Date: Fri, 10 Feb 2006 08:40:49 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 194.96.178.23 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:LiYlx/gltZeKy/t/Hm+0f2iHbFk= Sender: news Hi! I created the following function to create a tarball a given directory: function create-tgz { local archive_name archive_name="$1.tar.gz" archive_name=${archive_name/\//} tar cvfz "$archive_name" "$1" echo "Created archive $archive_name" } Now I would like to have completion for directory names for that function. How can I achieve that? Stefan.