summaryrefslogtreecommitdiff
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
parentc7edb354c78717e369230401f09de0199d56cf4a (diff)
downloadzsh-a090acab63c02900e86bd268fc9194fccf459d08.tar.gz
zsh-a090acab63c02900e86bd268fc9194fccf459d08.zip
unposted: _init_d: Report failure to caller.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_init_d2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 266570b41..eaf8f838c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-01-29 Daniel Shahaf <d.s@daniel.shahaf.name>
+
+ * unposted: Completion/Unix/Command/_init_d: _init_d: Report
+ failure to caller.
+
2016-01-28 Eric Cook <llua@gmx.com>
* 37814: Kamil Dudka: Functions/Misc/run-help-ip: use /bin/zsh
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)