summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-01-29 09:14:49 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-01-29 09:14:49 +0000
commita090acab63c02900e86bd268fc9194fccf459d08 (patch)
tree4322bc565bcf1a70a13ba30acde0f61a9aadc268 /Completion/Unix/Command
parentc7edb354c78717e369230401f09de0199d56cf4a (diff)
downloadzsh-a090acab63c02900e86bd268fc9194fccf459d08.tar.gz
zsh-a090acab63c02900e86bd268fc9194fccf459d08.tar.xz
zsh-a090acab63c02900e86bd268fc9194fccf459d08.zip
unposted: _init_d: Report failure to caller.
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_init_d2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_init_d b/Completion/Unix/Command/_init_d
index 2bb8d538c..03af2dc9b 100644
--- a/Completion/Unix/Command/_init_d
+++ b/Completion/Unix/Command/_init_d
@@ -103,7 +103,7 @@ fi
 script=$words[1]
 [[ $script = */* ]] || script="$(_init_d_fullpath "$script")"
 
-cmds=( $(_init_d_get_cmds) ) || return
+cmds=( $(_init_d_get_cmds) ) || return 1
 
 (( $#cmds )) || zstyle -a ":completion:${curcontext}:commands" commands cmds ||
     cmds=(start stop)