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: Eduardo Bustamante
Subject: Re: First lines of examples/startup-files/bashrc
Date: Wed, 8 Apr 2020 16:46:19 -0700

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

> /* If we were run by sshd or we think we were run by rshd, execute
> ~/.bashrc if we are a top-level shell. */



reply via email to

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