On 14/06/2024 16:53, Alan Mackenzie wrote:
I think portage is at fault here - it should retain the older standard version of /etc/bash/bashrc so that users can resolve the differences with a 3-way diff.
Is it portage itself that DID the update, or it did it tell you to do the update with etc-update, or dispatch-conf, or any one of those programs. Ime portage leaves the new version as ._something so you should have both the old and new versions until you mess it up yourself :-)
And as I keep moaning, you can't blame portage for other software being stupid. Doesn't bash have a ~/.bashrc you can edit? I know - all too often the DE gets in the way ...
Imho dovecot gets it perfectly right (as does systemd, actually, both of them thought this through properly) because it has a configuration in the default file that tells it to read a local file. So the package manager updates the standard file, and the standard file reads the local configuration to update it with the local settings.
Cheers, Wol