diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-04-02 11:32:38 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-04-02 11:32:38 +0200 |
commit | f0f3c02a3ccde07d3dc79577c7eca41ea3e8e86f (patch) | |
tree | d0aaab1de872a30a94555d2da3b501e13e18c217 /etc/functions/finfo | |
parent | 81ac4a06bff278f07620804b7d4120342b1f6522 (diff) |
Replace $var by ${var}
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}) |