From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29584 invoked from network); 25 Nov 2000 23:06:50 -0000 Received: from sunsite.dk (HELO sunsite.auc.dk) (130.225.51.30) by ns1.primenet.com.au with SMTP; 25 Nov 2000 23:06:50 -0000 Received: (qmail 5825 invoked by alias); 25 Nov 2000 23:06:35 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3528 Received: (qmail 5818 invoked from network); 25 Nov 2000 23:06:34 -0000 From: "Calum Selkirk" Date: Sun, 26 Nov 2000 00:06:00 +0000 To: zsh-users@sunsite.auc.dk Subject: Re: _tar -*Cf*? Message-ID: <20001126000600.D428@sophix.uklinux.net> Mail-Followup-To: zsh-users@sunsite.auc.dk References: <20001125054306.E5448@sophix.uklinux.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20001125054306.E5448@sophix.uklinux.net>; from cselkirk@sophix.uklinux.net on Sat, Nov 25, 2000 at 05:43:06AM +0000 X-Operating-System: Linux 2.2.18p17-b1-s19-tm on ppc > i'd been having problems using the -C switch with _tar .. i'd usually > use it in the context of: > > tar zxvf file.tar.gz -C /path/to/unpack > > however this would call _tar_archive and complete /path on the archives > directory structure. Looking at _tar i see: > > elif [[ ( CURRENT -gt 2 && "$words[CURRENT-1]" = -*Cf*) || > ( CURRENT -eq 3 && "$words[2]" = *Cf* ) ]]; then > > # a directory for -C > > _files -/ > > I'm pretty new to zsh so forgive my ignorance, but shouldn't this be -C > rather than -Cf to get commpletion on the --directory to change to? > > Changing it to -C does indeed produce the completion i'd expected and > _tar_archive seems to work as i'd expect with this change. I guess i'm > looking for a sanity check .. is this a typo/error or is this likely to > break something? sorry .. i'd failed to mention that i'm using 3.1.9-dev-6 > calum >