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: Chet Ramey
Subject: Re: First lines of examples/startup-files/bashrc
Date: Thu, 9 Apr 2020 09:48:37 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.6.0

On 4/8/20 7:46 PM, Eduardo Bustamante wrote:
> On Wed, Apr 8, 2020 at 2:42 PM Martin Schulte <gnu@schrader-schulte.de> 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.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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