--- Completion/X/Command/_acroread.orig Mon May 16 03:17:05 2005 +++ Completion/X/Command/_acroread Fri Sep 22 23:05:02 2006 @@ -4,12 +4,12 @@ # 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