bug-bash
[Top][All Lists]
Advanced

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

Re: Defaults -- any


From: Lawrence Velázquez
Subject: Re: Defaults -- any
Date: Tue, 30 Mar 2021 13:03:58 -0400
User-agent: Cyrus-JMAP/3.5.0-alpha0-273-g8500d2492d-fm-20210323.002-g8500d249

On Tue, Mar 30, 2021, at 12:54 PM, L A Walsh wrote:
> On 2021/03/29 20:04, Greg Wooledge wrote:
> > On Mon, Mar 29, 2021 at 07:25:53PM -0700, L A Walsh wrote:
> >   
> >>
> >>    I have both /etc/profile and /etc/bashrc call my configuration
> >> scripts.  Are there common paths that don't call one of those?
> >>     
> >
> > A vanilla bash compiled from GNU sources with no modifications will
> > not source /etc/bash.bashrc or /etc/bashrc or any other such file.
> >   
> ----
> 
>     So this manpage text is wrong (focusing on paths in /etc):
> 
>     When  bash is invoked as an interactive login shell, or as a non-inter-
>     active shell with the --login option, it first reads and executes  com-
>     mands  from  the file /etc/profile.      Please note that the file
>     /etc/profile includes an autodetection shell  code  w(h)ether  it  
> has  to
>     source /etc/bash.bashrc.
> 
>     When  bash is invoked as an interactive login shell, or as a non-inter-
>     active shell with the --login option, it first reads and executes  com-
>     mands  from  the file /etc/profile, if that file exists.
>     Please note that the file /etc/profile includes an autodetection
>     shell  code w(h)ether  it  has  to source /etc/bash.bashrc.

Your man page has been modified from the upstream one.

https://git.savannah.gnu.org/cgit/bash.git/tree/doc/bash.1?id=f3a35a2d601a55f337f8ca02a541f8c033682247#n315

vq



reply via email to

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