From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#29337: Bash reads system-wide bashrc unconditionally. Date: Fri, 24 Nov 2017 21:51:30 +0100 Message-ID: <878tev9z8t.fsf@gnu.org> References: <878tf5ksmq.fsf@gnu.org> <87o9o039cb.fsf@gnu.org> <87mv3gsjt6.fsf@gnu.org> <8760a4nhhi.fsf@gnu.org> <87fu93n0jr.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIKxD-0007f0-Hp for bug-guix@gnu.org; Fri, 24 Nov 2017 15:52:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIKx8-00045L-RM for bug-guix@gnu.org; Fri, 24 Nov 2017 15:52:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:47754) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eIKx8-000457-NF for bug-guix@gnu.org; Fri, 24 Nov 2017 15:52:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eIKx8-0005Il-H6 for bug-guix@gnu.org; Fri, 24 Nov 2017 15:52:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87fu93n0jr.fsf@gnu.org> (Roel Janssen's message of "Fri, 24 Nov 2017 16:46:43 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Roel Janssen Cc: 29337-done@debbugs.gnu.org Roel Janssen skribis: > Ludovic Court=C3=A8s writes: > >> Heya, >> >> Roel Janssen skribis: >> >>> Roel Janssen skribis: >>> >>>>> On CentOS 7, the following happens (yes, I added the echo-statement to >>>>> /etc/bashrc on CentOS as well): >>>>> $ env - bash --init-file <(echo "echo \"Goodbye, world\"") -i >>>>> Goodbye, world >>>>> >>>>> On GuixSD: >>>>> $ env - bash --init-file <(echo "echo \"Goodbye, world\"") -i >>>>> Hello, world >>>>> Goodbye, world >> >>> Well it seems that it isn't ignored when it ought to be ignored -> when >>> specifying --init-file. This is a difference between how Bash works on >>> CentOS 7, and how Bash works on Guix(SD). I can't find a >>> user-configurable option to make it work the same as on CentOS 7. >> >> Now, we=E2=80=99re compiling Bash with "-DSYS_BASHRC=3D'\"/etc/bashrc\"'= ". I >> wonder if removing that flag solves the --init-file case. > > It does. So, I have a custom bash package for my specific use-case. > I'm not sure how it affects other functionality, but I would like it if > we could make this change upstream at some point. Now=E2=80=99s the time to make that change in =E2=80=98core-updates=E2=80= =99! I don=E2=80=99t think it breaks things on GuixSD because /etc/profile sourc= es /etc/bashrc anyway. Thoughts? Ludo=E2=80=99.