aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-08-06 09:16:31 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-08-06 09:16:31 +0000
commitf06e2df6bb7288803bcc4a645e12e7e9572b12d7 (patch)
tree3ee8b8afde2a6b80051996086711e70850ce8fad
parent5946c72266e9b1981864097bad85f39cec49d4f1 (diff)
downloadzsh-f06e2df6bb7288803bcc4a645e12e7e9572b12d7.tar.gz
zsh-f06e2df6bb7288803bcc4a645e12e7e9572b12d7.tar.xz
zsh-f06e2df6bb7288803bcc4a645e12e7e9572b12d7.zip
remove usage of _pick_variant which is not in 4.0
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_texinfo2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c61f1060b..0241f5457 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-08-06 Oliver Kiddle <opk@zsh.org>
+
+ * unposted: Completion/Unix/Command/_texinfo: remove usage of 4.1
+ specific feature
+
2003-08-01 Peter Stephenson <pws@csr.com>
* 18920: Src/utils.c, Completion/Core/Base/_main_complete: update
diff --git a/Completion/Unix/Command/_texinfo b/Completion/Unix/Command/_texinfo
index 5c118f3f0..0e82cb80e 100644
--- a/Completion/Unix/Command/_texinfo
+++ b/Completion/Unix/Command/_texinfo
@@ -26,7 +26,7 @@ case $service in
info=( $info {(kv)opt_args[(I)(-d|--directory|-f|--file)]} )
;;
install-info)
- if _pick_variant debian=Debian gnu --version; then
+ if [[ $(_call_program version $words[1] --version 2>&1) = *Debian* ]]; then
_arguments -S \
'(* -)--help[display help information]' \
'(* -)--version[display version information]' \