Hi,

Maxim Cournoyer <ma...@guixotic.coop> writes:

> Ludovic Courtès <l...@gnu.org> writes:
>
> [...]
>
>> Yes, ‘sudo herd status TAB’ cannot work because it would need to run
>> ‘sudo herd status’ to get the list of available services.
>
> Maybe i could run this once and cache the result? I think I've seen this
> pattern before for bash completion.

I think it’s safer for completion code to not attempt to run code as
root when the user is not root (yet).

Thanks,
Ludo’.

Reply via email to