Burt Holzman wrote:
So that in bash, profile.d only gets sourced for non-login shells, while
in csh it gets sourced for both. Shouldn't there be another if like:
if ( ${?loginsh} ) then
?
Sorry, I got the behavior right but the cause wrong.bash login shells execute /etc/profile which sources files in /etc/profile.d/*.sh, but non-login shells do not.
csh login shells execute /etc/csh.cshrc which sources files in /etc/profile.d/*.sh; non-login shells do also.
So to be consistent with bash, shouldn't the source in /etc/csh.cshrc either check the loginsh variable, or the whole stanza should be moved to /etc/csh.login?
- B