diff options
author | Daniel Hahler <github@thequod.de> | 2016-08-13 16:42:55 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-08-13 10:42:55 -0400 |
commit | e09d0d46c297068d9d742d8a00c2c52e2d95a0c1 (patch) | |
tree | 407632616d3b0ce56f3c3d6fcd3e74ef02601523 /sysusers.d/.gitignore | |
parent | d551b8fcf75c32e34115a7ca638686e80be57657 (diff) |
zsh: _systemctl: do not attempt to use "--system" by default (#3951)
In 68c4f6d the following was added:
local -a _modes; _modes=("--user" "--system")
local _sys_service_mgr=${${words:*_modes}[(R)(${(j.|.)_modes})]:---system}
With the following comment:
> If neither are on the line, --system is set; for system services to be
> completed.
But it does not work as documented:
% _modes=(--user --system)
% words=()
% echo ${${words:*_modes}[(R)(${(j.|.)_modes})]:---system}
However, it should not use `--system` in that case anyway, so this patch
removes the part that should cause a default to be used and adds some
comments.
Diffstat (limited to 'sysusers.d/.gitignore')
0 files changed, 0 insertions, 0 deletions