--- Completion/X/Command/_acroread.orig Mon Mar 19 10:02:50 2007 +++ Completion/X/Command/_acroread Tue Jul 24 15:39:18 2007 @@ -16,12 +16,12 @@ # Try extracting the version number directly from the executable. # (This will fail if the executable is a wrapper script for acroread.) - _acroread_version=${${(M)${(f)"$(<$cmdfile)"}:#ver=*}##ver=} + _acroread_version=${${${(Mf)"$(<$commands[$words[1]])"}:#ver=*}##ver=} if [[ -z $_acroread_version ]]; then local acropath=${${(s. .)${${(f)"$($words[1] -help 2>&1)"}[1]}}[2]} if [[ -r $acropath ]]; then - _acroread_version=${${(M)${(f)"$(<$acropath)"}:#ver=*}##ver=} + _acroread_version=${${${(Mf)"$(<$acropath)"}:#ver=*}##ver=} fi fi fi