Re: git: 497cdf9673ec - main - sh: read more profile files.

From: Dag-Erling_Smørgrav <>
Date: Tue, 18 Oct 2022 13:07:25 UTC
FreeBSD User <> writes:
> According to this commit, I took the liberty opening a PR (id=266913) because some ports, like
> lang/gawk and x11-toolkits/vte3, install their SH and CSH set of shell configuration files into
> ${LOCALBASE}/etc/profile.d/, i.e. vte.{sh|csh}. 
> The proposed/commited /etc/profile includes also *.csh files, which triggers some disturbing
> error messages during a full login (i.e. su - ) and the list of those messages increase with
> the number of unfitting shell configuration files.
> I do not have a general solution, maybe someone more enlighted can take a look at this.

I've been racking my brain over this because I can't think of another
solution than to either explicitly skip *.csh, or only read *.sh.  The
Linux distros I was able to check easily (RHEL, Debian, Ubuntu, Alpine)
do the latter, so I suppose we should too.

Dag-Erling Smørgrav -