(ack) handle ack version string containing commit sha1

This commit is contained in:
Zhao Cai 2013-05-10 07:05:24 -04:00
parent d94703edf8
commit dab8775218
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@
_ack_version() { _ack_version() {
local version local version
version=(${(f)"$(_call_program version $words[1] --version)"}) version=(${(f)"$(_call_program version $words[1] --version)"})
version=${${version[1]}#ack } version=${${(z)${version[1]}}[2]}
printf $version printf $version
} }