Path: csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: "Dr. Werner Fink" Newsgroups: gnu.bash.bug Subject: Re: [bug-bash] Unexpected sourcing of ~/.bashrc under ssh Date: Mon, 28 Oct 2019 17:33:36 +0100 Lines: 54 Approved: bug-bash@gnu.org Message-ID: References: <27440.1571900467@kermit.inria.fr> <20191024144752.GF1408@eeg.ccf.org> <20191028163336.GA16967@noether> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" X-Trace: usenet.stanford.edu 1572280428 23253 209.51.188.17 (28 Oct 2019 16:33:48 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org X-Virus-Scanned: by amavisd-new at test-mx.suse.de Content-Disposition: inline In-Reply-To: <20191024144752.GF1408@eeg.ccf.org> X-GPG-Fingerprint: 1B06 BF5A 3829 90FB CBA2 75BE 50E9 0D55 1DC1 6B2E User-Agent: Mutt/1.11.3 (2019-02-01) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 195.135.220.15 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <20191028163336.GA16967@noether> X-Mailman-Original-References: <27440.1571900467@kermit.inria.fr> <20191024144752.GF1408@eeg.ccf.org> Xref: csiph.com gnu.bash.bug:15537 --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019/10/24 10:47:52 -0400, Greg Wooledge wrote: > On Thu, Oct 24, 2019 at 09:01:07AM +0200, Francis.Montagnac@inria.fr wrot= e: > > When logged on a machine with ssh, executing a simple command CMD1 > > that spawn a "/bin/bash -c some other command" do not source > > ~/.bashrc: normal behaviour. > >=20 > > When executing "CMD1 | CMD2", the ~/.bashrc is sourced: wrong . >=20 > Bash can be built with a compile-time option that causes it to try to > detect when it's the non-interactive child of an ssh session, and source > the user's ~/.bashrc under those conditions. >=20 > Many Linux distributions enable this option, because they believe that > their users expect this behavior. That is what bugzilla had told the last few years here, most users and cust= omers expect that their bash bahaves (non-)interactive local and remote the same = way --=20 "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJgBAABCABKFiEEGwa/WjgpkPvLonW+UOkNVR3Bay4FAl23GFwsFIAAAAAAFQAO cGthLWFkZHJlc3NAZ251cGcub3Jnd2VybmVyQHN1c2UuZGUACgkQUOkNVR3Bay51 Rw/+JGzwWVrhDVOv+dVNI9Sj538ChIkBdZ0ImuS7E/Nr/YIiykULU1ctivm1he/H tTSWL5s7lf1SojP7COyql4jAbSjvDOBZvr+2YmagwjrBCt1jwUu7wRTtzYopMtLJ r4OVcGxJu4lz8/GFhB8Ajp07aomLFKE2rIwswRvSodKyGQjdHrL8ni2uy4SNYKZ9 LCi3N8NZtEippr6vlAfn8pC9FWFQ8mG11/OdCMrgHGEjmi3sZ8bor6rLnDPBEJw8 L6/chBO+HJEi0d2jJeP8hE2wK2YBuyykEEiy+/5RVsI0a/1eMUjZzfwthJJ+99UR Ubmbh2/igmLacwJIdlozks3asUzqF2hOjQxCyEfuPanqFNUtaOxPEYuQ9McBV6XX FBsIONBkHuaFRZ4H7HvAGduY12YaNm0BsInOiZaL99bH36t1gTBlaULpHrkmgLu4 7tNJ0pxpOTegBsZc+E7S/2HUo99/GqOJ3WP5w3tHibW71sMS+GYNKbVe+Bk+Jf9t 6xSUyxZHu/YGtr+8u7W3rZ/IM69kw9oXPzu1gDcqdLQGp9p3rHXpo8GlLK8SCTls twPdj6lh3giGZQvfikwPbiZAciUwefnkCuQDTannioQwuvzJSil69HVahCVgTK26 rLFi+mY2YiMvNhr+GzVmtoHwZv2bpg1v73H2mlZOWpCqYek= =xnmp -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE--