From unknown Mon Jun 23 04:10:38 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#29337 <29337@debbugs.gnu.org> To: bug#29337 <29337@debbugs.gnu.org> Subject: Status: Bash reads system-wide bashrc unconditionally. Reply-To: bug#29337 <29337@debbugs.gnu.org> Date: Mon, 23 Jun 2025 11:10:38 +0000 retitle 29337 Bash reads system-wide bashrc unconditionally. reassign 29337 guix submitter 29337 Roel Janssen severity 29337 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 17 07:16:35 2017 Received: (at submit) by debbugs.gnu.org; 17 Nov 2017 12:16:35 +0000 Received: from localhost ([127.0.0.1]:44364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFfZS-0003nz-T4 for submit@debbugs.gnu.org; Fri, 17 Nov 2017 07:16:35 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36047) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFfZR-0003nl-6z for submit@debbugs.gnu.org; Fri, 17 Nov 2017 07:16:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFfZL-0000eu-6F for submit@debbugs.gnu.org; Fri, 17 Nov 2017 07:16:27 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54384) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eFfZL-0000em-2b for submit@debbugs.gnu.org; Fri, 17 Nov 2017 07:16:27 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFfZK-0000QK-2W for bug-guix@gnu.org; Fri, 17 Nov 2017 07:16:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eFfZE-0000aI-UP for bug-guix@gnu.org; Fri, 17 Nov 2017 07:16:26 -0500 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eFfZE-0000a2-Qi for bug-guix@gnu.org; Fri, 17 Nov 2017 07:16:20 -0500 Received: from ip-80-113-14-101.ip.prioritytelecom.net ([80.113.14.101]:25613 helo=yellowstone) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eFfZE-0003bg-7k for bug-guix@gnu.org; Fri, 17 Nov 2017 07:16:20 -0500 User-agent: mu4e 0.9.18; emacs 25.1.1 From: Roel Janssen To: bug-guix@gnu.org Subject: Bash reads system-wide bashrc unconditionally. Date: Fri, 17 Nov 2017 13:16:13 +0100 Message-ID: <878tf5ksmq.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Dear Guix, This is more of an issue for GuixSD. Our 'bash' package seems to behave differently from other distributions (like CentOS 7), and it behaves differently from the way described in its manual page. I added the following line to /etc/bashrc: echo "Hello, world" Here's the command to reproduce the problem: $ env - bash --init-file <(echo "echo \"Goodbye, world\"") -i Hello, world Goodbye, world >From the manpage: ... -i If the -i option is present, the shell is interactive. ... --init-file file --rcfile file Execute commands from file instead of the standard personal initialization file ~/.bashrc if the shell is interactive (see INVOCATION below). ... So, what should happen, is that it ignores the system-wide initialization file (and the user's initialization file). 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 Where does this difference come from? And could we make its behavior similar to CentOS 7, and more importantly, to the description in the manpage? Kind regards, Roel Janssen From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 17 16:04:59 2017 Received: (at 29337) by debbugs.gnu.org; 17 Nov 2017 21:04:59 +0000 Received: from localhost ([127.0.0.1]:45376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFnop-0003Aq-Eb for submit@debbugs.gnu.org; Fri, 17 Nov 2017 16:04:59 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:49540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFnoo-0003Ah-1z for 29337@debbugs.gnu.org; Fri, 17 Nov 2017 16:04:58 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 6D1A4EDC8; Fri, 17 Nov 2017 22:04:58 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SFgYXUjNgQnu; Fri, 17 Nov 2017 22:04:57 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 28727E418; Fri, 17 Nov 2017 22:04:57 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Roel Janssen Subject: Re: bug#29337: Bash reads system-wide bashrc unconditionally. References: <878tf5ksmq.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 27 Brumaire an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 17 Nov 2017 22:04:52 +0100 In-Reply-To: <878tf5ksmq.fsf@gnu.org> (Roel Janssen's message of "Fri, 17 Nov 2017 13:16:13 +0100") Message-ID: <87o9o039cb.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 29337 Cc: 29337@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Hi, 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 > > Where does this difference come from? And could we make its behavior > similar to CentOS 7, and more importantly, to the description in the > manpage? By default GuixSD=E2=80=99s /etc/profile (sourced by interactive shells) do= es this: --8<---------------cut here---------------start------------->8--- if [ -n "$BASH_VERSION" -a -f /etc/bashrc ] then # Load Bash-specific initialization code. . /etc/bashrc fi --8<---------------cut here---------------end--------------->8--- It comes from commit 1d167b6e3779bcc1666b5c7d5ee802170c7023b6, which was about loading the Bash completion code. Looking at the manual (info "(bash) Bash Startup Files"), I think that /etc/bashrc is ignored by default. Thus it=E2=80=99s up to users/distros to decide what to do with it, IIUC. Thoughts? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 20 16:49:01 2017 Received: (at 29337-done) by debbugs.gnu.org; 20 Nov 2017 21:49:01 +0000 Received: from localhost ([127.0.0.1]:49538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGtw4-00081B-Mm for submit@debbugs.gnu.org; Mon, 20 Nov 2017 16:49:00 -0500 Received: from eggs.gnu.org ([208.118.235.92]:48763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGtw2-00080w-9w for 29337-done@debbugs.gnu.org; Mon, 20 Nov 2017 16:48:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGtvw-0002nV-8c for 29337-done@debbugs.gnu.org; Mon, 20 Nov 2017 16:48:53 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGtvr-0002hj-0d; Mon, 20 Nov 2017 16:48:47 -0500 Received: from ip112-245-209-87.adsl2.static.versatel.nl ([87.209.245.112]:62255 helo=yellowstone) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eGtvq-0004S0-GA; Mon, 20 Nov 2017 16:48:46 -0500 References: <878tf5ksmq.fsf@gnu.org> <87o9o039cb.fsf@gnu.org> User-agent: mu4e 0.9.18; emacs 25.1.1 From: Roel Janssen To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#29337: Bash reads system-wide bashrc unconditionally. In-reply-to: <87o9o039cb.fsf@gnu.org> Date: Mon, 20 Nov 2017 22:48:37 +0100 Message-ID: <87mv3gsjt6.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29337-done Cc: 29337-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Ludovic Courtès writes: > Hi, > > 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 >> >> Where does this difference come from? And could we make its behavior >> similar to CentOS 7, and more importantly, to the description in the >> manpage? > > By default GuixSD’s /etc/profile (sourced by interactive shells) does > this: > > --8<---------------cut here---------------start------------->8--- > if [ -n "$BASH_VERSION" -a -f /etc/bashrc ] > then > # Load Bash-specific initialization code. > . /etc/bashrc > fi > --8<---------------cut here---------------end--------------->8--- > > It comes from commit 1d167b6e3779bcc1666b5c7d5ee802170c7023b6, which was > about loading the Bash completion code. > > Looking at the manual (info "(bash) Bash Startup Files"), I think that > /etc/bashrc is ignored by default. Thus it’s up to users/distros to > decide what to do with it, IIUC. > > Thoughts? Thanks for your reply, Ludo’! 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. I think I can also achieve my goal by invoking it as "sh", prepending "env - ENV=/path/to/etc/profile", and setting some environment variables like HOME and PS1. So I'll go that route, leaving Guix's Bash alone. :-) Kind regards, Roel Janssen From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 21 03:50:08 2017 Received: (at 29337-done) by debbugs.gnu.org; 21 Nov 2017 08:50:08 +0000 Received: from localhost ([127.0.0.1]:49842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eH4Fs-0008JM-68 for submit@debbugs.gnu.org; Tue, 21 Nov 2017 03:50:08 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:57249) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eH4Fq-0008JD-Uy for 29337-done@debbugs.gnu.org; Tue, 21 Nov 2017 03:50:07 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 8FC45FE50; Tue, 21 Nov 2017 09:50:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7IqES_gg_wQd; Tue, 21 Nov 2017 09:50:04 +0100 (CET) Received: from ribbon (unknown [193.50.110.188]) by hera.aquilenet.fr (Postfix) with ESMTPSA id ECB70FE46; Tue, 21 Nov 2017 09:50:03 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Roel Janssen Subject: Re: bug#29337: Bash reads system-wide bashrc unconditionally. References: <878tf5ksmq.fsf@gnu.org> <87o9o039cb.fsf@gnu.org> <87mv3gsjt6.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 1 Frimaire an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 21 Nov 2017 09:50:01 +0100 In-Reply-To: <87mv3gsjt6.fsf@gnu.org> (Roel Janssen's message of "Mon, 20 Nov 2017 22:48:37 +0100") Message-ID: <8760a4nhhi.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 29337-done Cc: 29337-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) 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. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 24 10:47:11 2017 Received: (at 29337-done) by debbugs.gnu.org; 24 Nov 2017 15:47:11 +0000 Received: from localhost ([127.0.0.1]:56124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIGC7-0002Ln-KJ for submit@debbugs.gnu.org; Fri, 24 Nov 2017 10:47:11 -0500 Received: from eggs.gnu.org ([208.118.235.92]:32950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIGC5-0002La-In for 29337-done@debbugs.gnu.org; Fri, 24 Nov 2017 10:47:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIGBz-0001nv-Ky for 29337-done@debbugs.gnu.org; Fri, 24 Nov 2017 10:47:04 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:33015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIGBs-0001i7-Qs; Fri, 24 Nov 2017 10:46:56 -0500 Received: from ip-80-113-14-101.ip.prioritytelecom.net ([80.113.14.101]:35509 helo=yellowstone) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eIGBs-0007jo-Ci; Fri, 24 Nov 2017 10:46:56 -0500 References: <878tf5ksmq.fsf@gnu.org> <87o9o039cb.fsf@gnu.org> <87mv3gsjt6.fsf@gnu.org> <8760a4nhhi.fsf@gnu.org> User-agent: mu4e 0.9.18; emacs 25.1.1 From: Roel Janssen To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#29337: Bash reads system-wide bashrc unconditionally. Message-ID: <87fu93n0jr.fsf@gnu.org> In-reply-to: <8760a4nhhi.fsf@gnu.org> Date: Fri, 24 Nov 2017 16:46:43 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29337-done Cc: 29337-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Ludovic Courtès 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’re compiling Bash with "-DSYS_BASHRC='\"/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. Kind regards, Roel Janssen From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 24 15:51:37 2017 Received: (at 29337-done) by debbugs.gnu.org; 24 Nov 2017 20:51:37 +0000 Received: from localhost ([127.0.0.1]:56431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIKwh-0005Hf-I5 for submit@debbugs.gnu.org; Fri, 24 Nov 2017 15:51:37 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:40876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIKwf-0005HW-PL for 29337-done@debbugs.gnu.org; Fri, 24 Nov 2017 15:51:34 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 191E0FF8F; Fri, 24 Nov 2017 21:51:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AmWVDf8zJNas; Fri, 24 Nov 2017 21:51:33 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 65CFDFE16; Fri, 24 Nov 2017 21:51:33 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Roel Janssen Subject: Re: bug#29337: Bash reads system-wide bashrc unconditionally. References: <878tf5ksmq.fsf@gnu.org> <87o9o039cb.fsf@gnu.org> <87mv3gsjt6.fsf@gnu.org> <8760a4nhhi.fsf@gnu.org> <87fu93n0jr.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 4 Frimaire an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 24 Nov 2017 21:51:30 +0100 In-Reply-To: <87fu93n0jr.fsf@gnu.org> (Roel Janssen's message of "Fri, 24 Nov 2017 16:46:43 +0100") Message-ID: <878tev9z8t.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 29337-done Cc: 29337-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 11 06:35:47 2017 Received: (at 29337-done) by debbugs.gnu.org; 11 Dec 2017 11:35:47 +0000 Received: from localhost ([127.0.0.1]:56097 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOMN9-0000Cb-8H for submit@debbugs.gnu.org; Mon, 11 Dec 2017 06:35:47 -0500 Received: from eggs.gnu.org ([208.118.235.92]:38703) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOMN6-0000CN-JY for 29337-done@debbugs.gnu.org; Mon, 11 Dec 2017 06:35:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOMMx-0006D6-Dx for 29337-done@debbugs.gnu.org; Mon, 11 Dec 2017 06:35:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOMMr-00068x-So; Mon, 11 Dec 2017 06:35:29 -0500 Received: from ip-80-113-14-101.ip.prioritytelecom.net ([80.113.14.101]:22016 helo=yellowstone) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eOMMr-00049e-1I; Mon, 11 Dec 2017 06:35:29 -0500 References: <878tf5ksmq.fsf@gnu.org> <87o9o039cb.fsf@gnu.org> <87mv3gsjt6.fsf@gnu.org> <8760a4nhhi.fsf@gnu.org> <87fu93n0jr.fsf@gnu.org> <878tev9z8t.fsf@gnu.org> User-agent: mu4e 0.9.18; emacs 25.1.1 From: Roel Janssen To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#29337: Bash reads system-wide bashrc unconditionally. Message-ID: <87tvwxqyzf.fsf@gnu.org> In-reply-to: <878tev9z8t.fsf@gnu.org> Date: Mon, 11 Dec 2017 12:35:22 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29337-done Cc: 29337-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Ludovic Courtès writes: > Roel Janssen skribis: > >> Ludovic Courtès 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’re compiling Bash with "-DSYS_BASHRC='\"/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’s the time to make that change in ‘core-updates’! > > I don’t think it breaks things on GuixSD because /etc/profile sources > /etc/bashrc anyway. > > Thoughts? I don't think it'll break things. So I guess I'm too late for the core-updates cycle. Should I push this change to core-updates for the next cycle? Kind regards, Roel Janssen From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 11 08:19:52 2017 Received: (at 29337-done) by debbugs.gnu.org; 11 Dec 2017 13:19:53 +0000 Received: from localhost ([127.0.0.1]:56164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eONzs-0004v9-MV for submit@debbugs.gnu.org; Mon, 11 Dec 2017 08:19:52 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:39202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eONzq-0004ux-7K for 29337-done@debbugs.gnu.org; Mon, 11 Dec 2017 08:19:50 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 64EC2F6D4; Mon, 11 Dec 2017 14:19:51 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rdbMRzOvwV7a; Mon, 11 Dec 2017 14:19:50 +0100 (CET) Received: from ribbon (unknown [193.50.110.104]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 65AB6F379; Mon, 11 Dec 2017 14:19:50 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Roel Janssen Subject: Re: bug#29337: Bash reads system-wide bashrc unconditionally. References: <878tf5ksmq.fsf@gnu.org> <87o9o039cb.fsf@gnu.org> <87mv3gsjt6.fsf@gnu.org> <8760a4nhhi.fsf@gnu.org> <87fu93n0jr.fsf@gnu.org> <878tev9z8t.fsf@gnu.org> <87tvwxqyzf.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 21 Frimaire an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 11 Dec 2017 14:19:46 +0100 In-Reply-To: <87tvwxqyzf.fsf@gnu.org> (Roel Janssen's message of "Mon, 11 Dec 2017 12:35:22 +0100") Message-ID: <87zi6p1jwt.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 29337-done Cc: 29337-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Roel Janssen skribis: > Ludovic Court=C3=A8s writes: [...] >>>> 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 so= urces >> /etc/bashrc anyway. >> >> Thoughts? > > I don't think it'll break things. So I guess I'm too late for the > core-updates cycle. Yes. > Should I push this change to core-updates for the next cycle? You can create a =E2=80=98core-updates-next=E2=80=99 branch based on =E2=80= =98core-updates=E2=80=99, or wait until =E2=80=98core-updates=E2=80=99 has been merged (which could take= at least two weeks.) Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 11 10:31:56 2017 Received: (at 29337-done) by debbugs.gnu.org; 11 Dec 2017 15:31:56 +0000 Received: from localhost ([127.0.0.1]:56974 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOQ3g-00021r-Gf for submit@debbugs.gnu.org; Mon, 11 Dec 2017 10:31:56 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41000) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOQ3f-00021c-Gh for 29337-done@debbugs.gnu.org; Mon, 11 Dec 2017 10:31:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOQ3Z-000737-Cg for 29337-done@debbugs.gnu.org; Mon, 11 Dec 2017 10:31:50 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40057) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOQ3T-0006uz-Hs; Mon, 11 Dec 2017 10:31:43 -0500 Received: from ip-80-113-14-101.ip.prioritytelecom.net ([80.113.14.101]:42782 helo=yellowstone) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eOQ3T-0004WJ-32; Mon, 11 Dec 2017 10:31:43 -0500 References: <878tf5ksmq.fsf@gnu.org> <87o9o039cb.fsf@gnu.org> <87mv3gsjt6.fsf@gnu.org> <8760a4nhhi.fsf@gnu.org> <87fu93n0jr.fsf@gnu.org> <878tev9z8t.fsf@gnu.org> <87tvwxqyzf.fsf@gnu.org> <87zi6p1jwt.fsf@gnu.org> User-agent: mu4e 0.9.18; emacs 25.1.1 From: Roel Janssen To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#29337: Bash reads system-wide bashrc unconditionally. In-reply-to: <87zi6p1jwt.fsf@gnu.org> Date: Mon, 11 Dec 2017 16:31:35 +0100 Message-ID: <87shchmgbs.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29337-done Cc: 29337-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Ludovic Courtès writes: > Roel Janssen skribis: > >> Ludovic Courtès writes: > > [...] > >>>>> Now, we’re compiling Bash with "-DSYS_BASHRC='\"/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’s the time to make that change in ‘core-updates’! >>> >>> I don’t think it breaks things on GuixSD because /etc/profile sources >>> /etc/bashrc anyway. >>> >>> Thoughts? >> >> I don't think it'll break things. So I guess I'm too late for the >> core-updates cycle. > > Yes. > >> Should I push this change to core-updates for the next cycle? > > You can create a ‘core-updates-next’ branch based on ‘core-updates’, or > wait until ‘core-updates’ has been merged (which could take at least two > weeks.) > > Ludo’. I'll wait. :-) Thanks! Kind regards, Roel Janssen From unknown Mon Jun 23 04:10:38 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 09 Jan 2018 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator