Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 1/2] Update _acroread version detection for 9.x
- X-seq: zsh-workers 28329
- From: "Benjamin R. Haskell" <zsh@xxxxxxxxxx>
- To: Zsh Workers <zsh-workers@xxxxxxx>
- Subject: [PATCH 1/2] Update _acroread version detection for 9.x
- Date: Fri, 8 Oct 2010 00:35:25 -0400
- Cc: "Benjamin R. Haskell" <zsh@xxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Makes 9.x use the same options as 7.x and 8.x, rather than falling
through to the pre-7.x options.
---
Completion/X/Command/_acroread | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/Completion/X/Command/_acroread b/Completion/X/Command/_acroread
index f74168a..a32dc3b 100644
--- a/Completion/X/Command/_acroread
+++ b/Completion/X/Command/_acroread
@@ -26,12 +26,11 @@ if [[ -z $_acroread_version ]]; then
fi
fi
-if [[ $_acroread_version == [78].* ]]; then
+if [[ $_acroread_version == [789].* ]]; then
local -a extra_args
- if [[ $_acroread_version == 8.* ]]; then
- extra_args=(-man '-installCertificate:server ip::server port')
- else
- extra_args=()
+ extra_args=()
+ if [[ $_acroread_version == [89].* ]]; then
+ extra_args+=(-man '-installCertificate:server ip::server port')
fi
_arguments -C \
"${extra_args[@]}" \
--
1.7.1
Messages sorted by:
Reverse Date,
Date,
Thread,
Author