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



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