Skip to content

Conversation

aarchetype
Copy link

Fix #505

@Tachi107
Copy link

Tachi107 commented Apr 17, 2024 via email

if [[ ${words[i]} != -* ]]; then
local PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
local root_command=${words[i]}
_command_offset $i
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a similar way to_comp_root_command() (defined in bash_completion), I think we want to enable the completion as if the current user has root privilege.

Suggested change
_command_offset $i
local _comp_root_command=1
_command_offset $i

@akinomyoga
Copy link
Collaborator

In case, the upstream issue is Duncaen/OpenDoas#62. The upstream PR is Duncaen/OpenDoas#84.

@Tachi107
Copy link

Tachi107 commented Sep 1, 2025

The upstream issue and patch have been ignored for four years. I think that's enough evidence of lack of interest from upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding doas support.

4 participants