Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zprofile and .profile sourcing



On Thu, Sep 8, 2022, at 6:12 PM, Piscium wrote:
> However in /etc/zsh/zprofile there is:
> emulate sh -c 'source /etc/profile'
>
> so I would expect /etc/profile to be loaded in all cases, even when
> not logging in over lightdm, and "$HOME/.profile" being sourced
> because 'emulate sh' which calls zsh in sh compatibility mode?

"emulate sh -c ..." just runs the given commands in compatibility
mode.  It does not start a new zsh process, so no startup files are
involved.

-- 
vq




Messages sorted by: Reverse Date, Date, Thread, Author