From 3486b354e1a6d6a1ae7dfdbebc7018c66e6e430b Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 26 Mar 2006 15:15:08 +0000 Subject: 22386: fix acroread version detection according to Bart's 22385. --- Completion/X/Command/_acroread | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Completion') diff --git a/Completion/X/Command/_acroread b/Completion/X/Command/_acroread index afcd3188c..c2832d513 100644 --- a/Completion/X/Command/_acroread +++ b/Completion/X/Command/_acroread @@ -4,12 +4,12 @@ local curcontext="$curcontext" state line # Try extracting the version number directly from the executable. # (This will fail if the executable is a wrapper script for acroread.) -local ver=${${${(f)"$(<$commands[$words[1]])"}:#^ver=*}##ver=} +local ver=${${${(Mf)"$(<$commands[$words[1]])"}:#ver=*}##ver=} [[ -n $ver ]] && _acroread_version=$ver if (( ! $+_acroread_version )); then local acropath=${${(s. .)${${(f)"$($words[1] -help 2>&1)"}[1]}}[2]} - _acroread_version=${${${(f)"$(<$acropath)"}:#^ver=*}##ver=} + _acroread_version=${${${(Mf)"$(<$acropath)"}:#ver=*}##ver=} fi if [[ $_acroread_version == 7.* ]]; then -- cgit 1.4.1