Package: base-files
Version: 11.1+deb11u3
Followup-For: Bug #275623
X-Debbugs-Cc: Gabriel F. T. Gomes <gabr...@debian.org>

Dear Maintainer,

the current behavior is very inconsistent in regards to
`bash_completion`:

- if you login as user `root` on the console or via `ssh` and get an
  *interactive login shell*, which first executes `/etc/profile` and
  thus sources `/etc/profile.d/bash_completion.sh`.

- For a regular user `/etc/skel/.bashrc` is used instead, which
  *explicitly* sources bash completion.

- if you use `sudo -s` to become `root` or use `screen` as `root`, you
  get an interactive *non*-login shell instead, which skip
  `/etc/profile` and use `/root/.bashrc` only.
  It does *not* source bash completion.

So everyone except `root` gets bash completion by default.
`root` also gets completion but *not* when using `screen` or `sudo`.

So if `root` should have a "minimal" environment, `/etc/profile` would
need an exception to skip things if run by `root`.
Instead I prefer `root` to have bash completion by default.

Your fellow DD
Philipp

PS: also see my analysis at
<https://forge.univention.org/bugzilla/show_bug.cgi?id=54717#comment3>

-- System Information:
Debian Release: 11.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable'), (50, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-15-amd64 (SMP w/16 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de:en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages base-files depends on:
ii  gawk [awk]  1:5.1.0-1
ii  mawk [awk]  1.3.4.20200120-2

base-files recommends no packages.

base-files suggests no packages.

-- no debconf information

Reply via email to