1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-28 15:01:21 +02:00

unposted: autoload is-at-least in _tar if using GNU tar.

This commit is contained in:
Clint Adams 2006-06-25 16:15:02 +00:00
parent 16db320811
commit 9bbc6e7daa
2 changed files with 5 additions and 1 deletions

@ -1,5 +1,8 @@
2006-06-24 Clint Adams <clint@zsh.org>
* unposted: Completion/Unix/Command/_tar: autoload
is-at-least in _tar if using GNU tar.
* 22513: Completion/Unix/Command/_tar: only do that for
GNU tar >= 1.14.91.

@ -24,7 +24,8 @@ local _tar_cmd tf tmp tmpb del index
if _pick_variant gnu=GNU unix --version; then
case "$($service --version)" in
(tar \(GNU tar\) (#b)([0-9.-]##)*)
is_at_least 1.14.91 "$match[1]" || _cmd_variant[$service]="gnu-old"
autoload is-at-least
is-at-least 1.14.91 "$match[1]" || _cmd_variant[$service]="gnu-old"
;;
esac
fi