mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-19 11:31:26 +01:00
unposted: _init_d: Report failure to caller.
This commit is contained in:
parent
c7edb354c7
commit
a090acab63
2 changed files with 6 additions and 1 deletions
|
@ -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…
Reference in a new issue