Package: bash-completion
Version: 1:2.14.0-1
Severity: wishlist
X-Debbugs-Cc: j...@joshtriplett.org

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.


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: arm64

Kernel: Linux 6.10.6-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

-- no debconf information

Reply via email to