Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_tar -*Cf*?
- X-seq: zsh-users 3527
- From: "Calum Selkirk" <cselkirk@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: _tar -*Cf*?
- Date: Sat, 25 Nov 2000 05:43:06 +0000
- Mail-followup-to: zsh-users@xxxxxxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
hi zshers ..
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?
calum
Messages sorted by:
Reverse Date,
Date,
Thread,
Author