bug-bash
[Top][All Lists]
Advanced

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

Re: Default PS1


From: Greg Wooledge
Subject: Re: Default PS1
Date: Mon, 29 Mar 2021 23:04:44 -0400

On Mon, Mar 29, 2021 at 07:25:53PM -0700, L A Walsh wrote:
> On 2021/03/29 14:39, Greg Wooledge wrote:
> > On Mon, Mar 29, 2021 at 01:49:41PM -0700, L A Walsh wrote:
> > > Or, what do you mean by 'default'?  Is it sufficient
> > > to set it in the system /etc/profile so it is the default
> > > for all users when logging in?
> > 
> > Sadly, that won't work.  There are plenty of *extremely* common paths
> > from power-on to shell which do not read /etc/profile.
> ----
>    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.
The SYS_BASHRC feature is off by default, and must be enabled at
compile time.  Many Linux distributions enable it, but there are
surely systems with bash installed which have not enabled it.  So
that's one thing.

Any login that uses a graphical Display Manager does not read /etc/profile.
So that's the second thing.

Now imagine a system with a vanilla bash, and a Display Manager login.



reply via email to

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