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

2020-04-09 Thread Greg Wooledge
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

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

2020-04-09 Thread Chet Ramey
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://

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

2020-04-09 Thread Greg Wooledge
On Wed, Apr 08, 2020 at 04:46:19PM -0700, 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 b

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

2020-04-08 Thread Eduardo Bustamante
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=ea31c00845

First lines of examples/startup-files/bashrc

2020-04-08 Thread Martin Schulte
Hello bash developers, my apologies in advance if I'm overlooking something trivial but I'm really wondering about the first lines in examples/startup-files/bashrc (which are copied to Debian's skeleton ~/.bashrc): case $- in *i*);; *) return ;; esac Well, bash terminates sourcing the f