1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-20 06:56:05 +02:00

unposted: _init_d: Report failure to caller.

This commit is contained in:
Daniel Shahaf 2016-01-29 09:14:49 +00:00
parent c7edb354c7
commit a090acab63
2 changed files with 6 additions and 1 deletions

View File

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

View File

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