Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Greg Wooledge Newsgroups: gnu.bash.bug Subject: Re: First lines of examples/startup-files/bashrc Date: Thu, 9 Apr 2020 09:52:56 -0400 Lines: 15 Approved: bug-bash@gnu.org Message-ID: References: <20200408234241.84fa2643163cc7ec3aedc6ef@schrader-schulte.de> <5a9bfbee-e20b-1e98-bc36-d04372c5bb5a@case.edu> <20200409135256.GB845@eeg.ccf.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: usenet.stanford.edu 1586440381 14289 209.51.188.17 (9 Apr 2020 13:53:01 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org Mail-Followup-To: bug-bash@gnu.org Content-Disposition: inline In-Reply-To: <5a9bfbee-e20b-1e98-bc36-d04372c5bb5a@case.edu> User-Agent: Mutt/1.10.1 (2018-07-13) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 139.137.100.1 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: <20200409135256.GB845@eeg.ccf.org> X-Mailman-Original-References: <20200408234241.84fa2643163cc7ec3aedc6ef@schrader-schulte.de> <5a9bfbee-e20b-1e98-bc36-d04372c5bb5a@case.edu> Xref: csiph.com gnu.bash.bug:16115 On Thu, Apr 09, 2020 at 09:48:37AM -0400, Chet Ramey wrote: > On 4/8/20 7:46 PM, Eduardo Bustamante wrote: > > On Wed, Apr 8, 2020 at 2:42 PM Martin Schulte wrote: > > (...) > >> But, as far as I understand, a non-interactive bash doesn't read > >> ~/.bashrc at all - so shouldn't we just omit them? > > > > There are exceptions. One of them being SSH, see: > > https://git.savannah.gnu.org/cgit/bash.git/tree/shell.c?h=ea31c00845c858098d232bd014bf27b5a63a668b#n1095 > > My guess is that Debian has compiled bash with SSH_SOURCE_BASHRC defined. That's correct. See https://sources.debian.org/src/bash/5.0-4/debian/patches/deb-bash-config.diff/