Bash Does Not Source /etc/profile -- SOLVED

Drew Tomlinson bob811183 at gmail.com
Thu Aug 20 22:34:02 UTC 2020


Thank you for your reply.  That solved it.  I would be good to update the man page to reference those changes.

Cheers,

Drew

-----Original Message-----
From: Yasuhiro KIMURA <yasu at utahime.org> 
Sent: Thursday, August 20, 2020 1:31 PM
To: drew at mykitchentable.net; bob811183 at gmail.com
Cc: questions at freebsd.org
Subject: Re: Bash Does Not Source /etc/profile

From: "Drew Tomlinson" <bob811183 at gmail.com>
Subject: Bash Does Not Source /etc/profile
Date: Thu, 20 Aug 2020 11:37:50 -0700

> I performed an binary upgrade from 12.0-p3 to 12.1-p8 and recompiled 
> all ports.  My shell is set to /usr/local/bin/bash in /etc/passwd.  
> One thing that's puzzling is that /etc/profile is no longer sourced when I log in.

It is result of following commit.

------------------------------------------------------------------------
r542373 | ehaupt | 2020-07-17 02:14:53 +0900 (2020/07/17 (金)) | 8 lines

Cleanly decouple bash from base by reading `profile` from $LOCALBASE/etc/ instead of from /etc.

Document this change in UPDATING and provide a migration strategy.

PR:             247934 (based on)
Submitted by:   Michael Osipov <michael.osipov at siemens.com>

------------------------------------------------------------------------

Read entry of 20200716 in UPDATING for more detail.

---
Yasuhiro KIMURA



More information about the freebsd-questions mailing list