From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7F76415817D for ; Sat, 15 Jun 2024 16:39:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6C941E2AB0; Sat, 15 Jun 2024 16:39:11 +0000 (UTC) Received: from smtp.hosts.co.uk (smtp.hosts.co.uk [85.233.160.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CB5F3E2AA5 for ; Sat, 15 Jun 2024 16:39:10 +0000 (UTC) Received: from host31-49-121-21.range31-49.btcentralplus.com ([31.49.121.21] helo=[192.168.1.65]) by smtp.hosts.co.uk with esmtpa (Exim) (envelope-from ) id 1sIWQn-000000008Jq-4OML for gentoo-user@lists.gentoo.org; Sat, 15 Jun 2024 17:39:09 +0100 Message-ID: Date: Sat, 15 Jun 2024 17:39:08 +0100 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [gentoo-user] Difficulty with updating /etc/basb/bashrc To: gentoo-user@lists.gentoo.org References: Content-Language: en-GB From: Wol In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 45b67d25-33a3-4110-97af-ed8fce87b3f7 X-Archives-Hash: 0db741f2f97f54a3a75d9ebdd60a00be 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