summaryrefslogtreecommitdiff
path: root/etc/functions/need-comp
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-04-02 11:32:38 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-04-02 11:32:38 +0200
commitf0f3c02a3ccde07d3dc79577c7eca41ea3e8e86f (patch)
treed0aaab1de872a30a94555d2da3b501e13e18c217 /etc/functions/need-comp
parent81ac4a06bff278f07620804b7d4120342b1f6522 (diff)
Replace $var by ${var}
Diffstat (limited to 'etc/functions/need-comp')
-rw-r--r--etc/functions/need-comp4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/functions/need-comp b/etc/functions/need-comp
index a38b561..9326157 100644
--- a/etc/functions/need-comp
+++ b/etc/functions/need-comp
@@ -1,9 +1,9 @@
## vim:ft=zsh
check_comp() {
- ((! $+_comps[$1])) && print $1
+ ((! ${+_comps[$1]})) && print ${1}
}
{
- for f ($^path/*(N:t)) check_comp $f
+ for f (${^path}/*(N:t)) check_comp ${f}
} | sort