Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH v2 2/3] Introduce new completion for setpriv(1) on Linux
- X-seq: zsh-workers 48221
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Arseny Maslennikov <ar@xxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: [PATCH v2 2/3] Introduce new completion for setpriv(1) on Linux
- Date: Mon, 22 Mar 2021 11:18:16 +0100
- Archived-at: <https://zsh.org/workers/48221>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-03/CAHYJk3TH7o5gg1XdvgJxobW7gU%3D0fJpDef%3DEoxqOXx7NvnPkrg%40mail.gmail.com>
- In-reply-to: <20210321130131.1667276-2-ar@cs.msu.ru>
- List-id: <zsh-workers.zsh.org>
- References: <20210321130131.1667276-1-ar@cs.msu.ru> <20210321130131.1667276-2-ar@cs.msu.ru>
On 3/21/21, Arseny Maslennikov <ar@xxxxxxxxx> wrote:
> This is a utility from util-linux which sets or queries various Linux
> process privilege settings that are inherited across execve(2). More
> info is available in the corresponding manual page[1].
[...]
> + if ! compset -P '[+-]'; then
> + _description minus-or-plus expl "-/+"
> + compadd "${(@)expl}" -qS '' {+,-}
[...]
> + compadd "${(@)expl}" -qS '' {+,-}
{+,-} is exactly the same as + - so it's a little needlessly
complicated. That said I don't think it's worth resending just for
that... but if someone goes in there again to edit it, feel free to
change those.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author