Bug#275623: sync root's .bashrc and .profile with bash's skeletons

2023-04-20 Thread Santiago Vila

El 20/4/23 a las 14:15, Askar Safin escribió:

Yes, current situation breaks bash-completion. Moreover, it breaks
bash-completion in standard debian images for docker. Because in this
images you enter the container as root via non-login shell. So,
bash-completion in docker simply doesn't work.


I want to keep dotfiles for root as simple as possible.
If you need to change them, you can always change them
in your system, and the changes will be preserved.

The feature which you are asking to be enabled by default is an
optional feature which in no way it's necessary to be present.

Therefore, this is really a wontfix, but for now I prefer to keep it as 
wishlist.

Thanks.



Bug#275623: sync root's .bashrc and .profile with bash's skeletons

2023-04-20 Thread Askar Safin
Yes, current situation breaks bash-completion. Moreover, it breaks
bash-completion in standard debian images for docker. Because in this
images you enter the container as root via non-login shell. So,
bash-completion in docker simply doesn't work.

So, please, copy /etc/skel/.bashrc to /root/.bashrc . I can write a
patch, if you want.

-- 
Askar Safin



Bug#275623: sync root's .bashrc and .profile with bash's skeletons

2022-07-06 Thread Philipp Matthias Hahn
Package: base-files
Version: 11.1+deb11u3
Followup-For: Bug #275623
X-Debbugs-Cc: Gabriel F. T. Gomes 

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


-- 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



Bug#275623: sync root's .bashrc and .profile with bash's skeletons

2010-04-21 Thread Christoph Anton Mitterer
Hi.

What's the status on this?

I'd also say root's .profile/.bashrc should be rather empty per default, a
user can still copy the files from bash's /etc/skel/-stuff if he wants.

But another thing. Although bash is required/essential, I guess:
base-files should be rather neutral on the used shell, shouldn't it?

So does it make sense to remove /usr/share/base-files/dot.bashrc
completely from it, as .bashrc is stricly speaking only for bash?
It's empty anway nowadays (everything is commented)...

Is root created by adduser during installation? If so, wouldn't it make
sense to move responsibility of the installation of root's
.profile/.bashrc/etc. to that?

Than base-files could drop both files completely.


Cheers,
Chris.




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#275623: sync root's .bashrc and .profile with bash's skeletons

2005-04-18 Thread Santiago Vila
> what's the status of this wishlist item? Any chance to get it into the
> official package?

If I had to decide right now what to do about this bug, I would
probably close it. Policy says dotfiles should be as empty as possible.
Asking that root's dotfiles have things that they should not have to
begin with is simply wrong.

I have to think about this carefully. Don't expect this to be "fixed"
as I do not consider it to be a bug.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#275623: sync root's .bashrc and .profile with bash's skeletons

2005-04-18 Thread Free Ekanayaka
Hi,

what's the status of this wishlist item? Any chance to get it into the
official package?

Thanks,

Free




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]