bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: First lines of examples/startup-files/bashrc


From: Greg Wooledge
Subject: Re: First lines of examples/startup-files/bashrc
Date: Thu, 9 Apr 2020 09:52:56 -0400
User-agent: Mutt/1.10.1 (2018-07-13)

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 <address@hidden> 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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]