Control: tags -1 confirmed Steps to reproduce
$ su - # become root # echo $0 -bash # this is a login shell # apt-get inst<TAB> (completes) # su root # echo $0 bash # this is a non-login shell # apt-get inst<TAB><TAB> (nothing happens) I don't currently know what sources /etc/bash_completion in the login shell. I'll try to figure it out. On Tue, 18 Apr 2023 12:31:04 +0000 Askar Safin <safinas...@gmail.com> wrote: > Package: bash-completion > Version: 1:2.11-6 > Severity: normal > X-Debbugs-Cc: safinas...@gmail.com > > bash-completion (for example, "apt-get inst<Tab>") doesn't work for root in > non-login shell on default settings. Completion works for normal users. > And completion works in login shells. > > > > -- System Information: > Debian Release: bookworm/sid > APT prefers unstable > APT policy: (500, 'unstable') > Architecture: amd64 (x86_64) > > Kernel: Linux 5.10.0-0.deb9.21-amd64 (SMP w/4 CPU threads) > Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set > Shell: /bin/sh linked to /usr/bin/dash > Init: unable to detect > > -- no debconf information