#1079830 Please support tab-completing `sudo somecmd /path/private/[tab]` if `~/.sudo_as_admin_successful` #1079830
- Package:
- bash-completion
- Source:
- bash-completion
- Submitter:
- Josh Triplett
- Date:
- 2024-09-09 11:03:02 UTC
- Severity:
- normal
If the user has sudo access (`~/.sudo_as_admin_successful` exists), and they're tab-completing a command starting with `sudo` (to guard against doing this unexpectedly), and they're completing a path that includes a directory they don't have access to, bash-completion could use sudo to list potential matches so that tab-completion can work. Ideally this would fully integrate with bash-completion, such that any other completion that's asking to complete pathnames will be able to use it.
Is that really a good idea?
Is that really a good idea?