diff options
Diffstat (limited to 'etc/functions/finfo')
-rw-r--r-- | etc/functions/finfo | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/functions/finfo b/etc/functions/finfo index 62a5fe9..f0c9429 100644 --- a/etc/functions/finfo +++ b/etc/functions/finfo @@ -4,11 +4,11 @@ ## Usage: finfo <function name> typeset line -whichf $1 &> /dev/null || return 1 +whichf ${1} &> /dev/null || return 1 while read line; do - [[ $line == \#* ]] || break - [[ $line == *vim:ft=* ]] && continue - [[ $line == \#(autoload|compdef)* ]] && continue + [[ ${line} == \#* ]] || break + [[ ${line} == *vim:ft=* ]] && continue + [[ ${line} == \#(autoload|compdef)* ]] && continue echo ${line#(\#|)\# } -done < $(whichf $1) +done < $(whichf ${1}) |