zsh-users
 help / color / mirror / code / Atom feed
* _tar -*Cf*?
@ 2000-11-25  5:43 Calum Selkirk
  2000-11-26  0:06 ` Calum Selkirk
  2000-11-26  2:20 ` Bart Schaefer
  0 siblings, 2 replies; 5+ messages in thread
From: Calum Selkirk @ 2000-11-25  5:43 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-11-27 18:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-25  5:43 _tar -*Cf*? Calum Selkirk
2000-11-26  0:06 ` Calum Selkirk
2000-11-26  2:20 ` Bart Schaefer
2000-11-27  7:03   ` Calum Selkirk
2000-11-27 17:33     ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).