From f0f3c02a3ccde07d3dc79577c7eca41ea3e8e86f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 2 Apr 2010 11:32:38 +0200 Subject: Replace $var by ${var} --- etc/functions/whichf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/functions/whichf') diff --git a/etc/functions/whichf b/etc/functions/whichf index 01026c4..03bcbb7 100644 --- a/etc/functions/whichf +++ b/etc/functions/whichf @@ -1,7 +1,7 @@ ## vim:ft=zsh ## locate the file corresponding to a function -if [[ -n $(echo ${^fpath}/$1(-.N)) ]] { - echo ${^fpath}/$1(-.N) +if [[ -n $(echo ${^fpath}/${1}(-.N)) ]] { + echo ${^fpath}/${1}(-.N) } else { return 1 } -- cgit v1.2.3