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: Error in the manual regarding the '=~' operator

2020-04-09 Thread Chet Ramey
On 4/9/20 7:19 AM, Guebitz Roland wrote: > Hello, > in the section > https://www.gnu.org/software/bash/manual/bash.html#Conditional-Constructs > you have this example: > [[ $line =~ [[:space:]]*?(a)b ]] > The expression ?() is not part of the Posix ERE. It is part of bash pattern > matching: https

Error in the manual regarding the '=~' operator

2020-04-09 Thread Guebitz Roland
Hello, in the section https://www.gnu.org/software/bash/manual/bash.html#Conditional-Constructs you have this example: [[ $line =~ [[:space:]]*?(a)b ]] The expression ?() is not part of the Posix ERE. It is part of bash pattern matching: https://www.gnu.org/software/bash/manual/bash.html#Pattern-M

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