Commit 497cdf9673ec53d59634bb78862cd8dea3d5c155 introduces a new /etc/profile reading more sh profiles, also those put into /usr/local/etc/profile.d/. On working hosts with some special ports installed, ${LOCALBASE}/etc/profile.d/ is also populated with a set of sh/ksh/bash configuration files ending in *.sh as well as those for csh/tcsh, ending in *.csh accordingly, like these ports I'm aware of: lang/gawk (gawk.{sh|csh}) x11-toolkits/vte3 (vte.{sh|csh} The existence of *.csh files in folder results in unpleasant errors during a full login.
See https://reviews.freebsd.org/D37034
^Triage: assign to committer of D37034.
Fixed by 8d7221ca2dd5.