summaryrefslogtreecommitdiff
path: root/etc/completions/_initd
diff options
context:
space:
mode:
Diffstat (limited to 'etc/completions/_initd')
-rw-r--r--etc/completions/_initd6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/completions/_initd b/etc/completions/_initd
index 61abd04..f44c0b7 100644
--- a/etc/completions/_initd
+++ b/etc/completions/_initd
@@ -19,9 +19,9 @@ if zstyle -t ':completion:*:*:_initd' all-files; then
fi
for file in /etc/init.d/*(*); {
- read -u0 -k2 bang < $file && [[ $bang == '#!' ]] &&
- [[ -n ${${(j:|:s:|:)${(M)${(f)"$(< $file)"}:#[[:blank:]]#(\'|)(${~action}[[:blank:]]#\|[[:blank:]]#)#${~specific}([[:blank:]]#\|[[:blank:]]#${~action})#(\'|)\)}}//[^-a-z_]} ]] &&
+ read -u0 -k2 bang < ${file} && [[ ${bang} == '#!' ]] &&
+ [[ -n ${${(j:|:s:|:)${(M)${(f)"$(< ${file})"}:#[[:blank:]]#(\'|)(${~action}[[:blank:]]#\|[[:blank:]]#)#${~specific}([[:blank:]]#\|[[:blank:]]#${~action})#(\'|)\)}}//[^-a-z_]} ]] &&
scripts+=${file##*/}
}
-_wanted script expl script compadd $scripts
+_wanted script expl script compadd ${scripts}