83907294d640d910968cf9152d11c6a5ab3205f5
Author Sean McCleary <sean@sean-desktop.(none)> Committer Sean McCleary <sean@sean-desktop.(none)> Date 2009-10-23 18:59 UTC
Message 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
Diff 1 diff --git a/lib/rake_completion.zsh b/lib/rake_completion.zsh
2 index c425a625e1d219740e2b63bacf42e0e10fc1b46a..9ee8213ae08fd78b8c8499a49afa1f49601e129d 100644
3 --- a/lib/rake_completion.zsh
4 +++ b/lib/rake_completion.zsh
5 @@ -1,8 +1,8 @@
6 _rake_does_task_list_need_generating () {
7 if [ ! -f .rake_tasks~ ]; then return 0;
8 else
9 - accurate=$(stat -f%m .rake_tasks~)
10 - changed=$(stat -f%m Rakefile)
11 + accurate=$(stat -c "%n" .rake_tasks~)
12 + changed=$(stat -c "%n" Rakefile)
13 return $(expr $accurate '>=' $changed)
14 fi
15 }