[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Defaults -- any
From: |
Greg Wooledge |
Subject: |
Re: Defaults -- any |
Date: |
Tue, 30 Mar 2021 13:21:01 -0400 |
On Tue, Mar 30, 2021 at 09:54:35AM -0700, 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.
This text is not part of upstream bash, nor part of Debian's patched
version of bash.
unicorn:/var/tmp/bash/bash-5.1/doc$ grep autodetect *
unicorn:/var/tmp/bash/bash-5.1/doc$ man bash | grep autodetect
unicorn:/var/tmp/bash/bash-5.1/doc$
I can't say whether it's correct on *your* system or not, since your
system is using a different set of patches than mine. You'll have to
discuss it with your vendor.
> Not really pertinent how my distro compiles bash, as it's on my
> short list of programs I compile myself.
In that case, you *need* to discard that altered man page. It's got
misinformation that will not be correct for your self-compiled bash.
> SGI, took pains to have the graphical display manager read the login
> scripts. I think suse does as well. I login with a Windows GUI (it
> doesn't)
> read *nix login scripts.
Oh yeah, SuSE. SuSE is *notorious* for wreaking havoc with shell configs.
Good luck with that!
Re: Default PS1, Christopher Dimech, 2021/03/29