From dab877521830130037fe8238fc1fa1601a004988 Mon Sep 17 00:00:00 2001 From: Zhao Cai Date: Fri, 10 May 2013 07:05:24 -0400 Subject: [PATCH] (ack) handle ack version string containing commit sha1 --- src/_ack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_ack b/src/_ack index 7b92bac..e7fa5b7 100644 --- a/src/_ack +++ b/src/_ack @@ -42,7 +42,7 @@ _ack_version() { local version version=(${(f)"$(_call_program version $words[1] --version)"}) - version=${${version[1]}#ack } + version=${${(z)${version[1]}}[2]} printf $version }