unposted: _init_d: Report failure to caller.

mikachu/badarrays
Daniel Shahaf 8 years ago
parent c7edb354c7
commit a090acab63

@ -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

@ -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)

Loading…
Cancel
Save