When I open a shell, .zprofile is automatically sourced but .profile not. I verify this because
.zprofile contains
echo "we are in zprofile"
...
.profile contains
echo "we are in profile"
...
and when opening a new shell I get only
we are in zprofile
which seems to be in contradiction with this post which says that .zprofile is sourced for login shells only.
so should both be not be sourced when opening a "normal" shell?
Also when I do su - johnsmith or su johnsmith --login, the .profile is not beeing sourced and I don't understand why.