Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: _tar -*Cf*?



On Nov 27,  7:03am, Calum Selkirk wrote:
} Subject: Re: _tar -*Cf*?
}
} Bart Schaefer [schaefer@xxxxxxxxxxxxxxxxxxxxxxx] wrote:
} 
} > On Nov 25,  5:43am, Calum Selkirk wrote:
} >
} > > elif [[ ( CURRENT -gt 2 && "$words[CURRENT-1]" = -*Cf*) ||
} > >         ( CURRENT -eq 3 && "$words[2]" = *Cf* ) ]]; then
} > > 
} > > 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?  
} > 
} > It should probably be *C*f*.
} 
} Thats what i had originally thought .. but *C*f* would also produce the
} completion on _tar_archive  and not _file -/ (which would be my expected
} behavior from the -C switch).

How about [^f]#C* instead?  The important thing is that *f*C* should NOT
match.

} I'm planning writting a basic intro (that would only cover 3.1.9 as that
} is all i'm familiar with)

Have you had a look at http://sunsite.dk/zsh/ ?  In particular, look at
http://sunsite.dk/zsh/Guide/zshguide.html by Peter Stephenson <pws@xxxxxxx>.
He might be interested in contributions.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author