Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15537
| Path | csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | "Dr. Werner Fink" <werner@suse.de> |
| 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 | <mailman.10.1572280428.2428.bug-bash@gnu.org> (permalink) |
| 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 <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <https://lists.gnu.org/archive/html/bug-bash> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=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 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
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 wrote:
> > 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.
> >
> > When executing "CMD1 | CMD2", the ~/.bashrc is sourced: wrong .
>
> 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.
>
> 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 customers
expect that their bash bahaves (non-)interactive local and remote the same way
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: [bug-bash] Unexpected sourcing of ~/.bashrc under ssh "Dr. Werner Fink" <werner@suse.de> - 2019-10-28 17:33 +0100
csiph-web