From fa344e35795538bef471d15a99e4fe96d921c2d5 Mon Sep 17 00:00:00 2001 From: Sean McCleary Date: Fri, 23 Oct 2009 11:59:24 -0700 Subject: [PATCH] Fixed issue #19 'Rake not auto completing'. The stat command syntax that was being used was not correct. Or at least on my machine. See man page for the stat command --- lib/rake_completion.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rake_completion.zsh b/lib/rake_completion.zsh index c425a625..9ee8213a 100644 --- a/lib/rake_completion.zsh +++ b/lib/rake_completion.zsh @@ -1,8 +1,8 @@ _rake_does_task_list_need_generating () { if [ ! -f .rake_tasks~ ]; then return 0; else - accurate=$(stat -f%m .rake_tasks~) - changed=$(stat -f%m Rakefile) + accurate=$(stat -c "%n" .rake_tasks~) + changed=$(stat -c "%n" Rakefile) return $(expr $accurate '>=' $changed) fi }