From: "Lawrence Velázquez" <larryv@zsh.org>
To: Piscium <groknok@gmail.com>
Cc: zsh-users@zsh.org
Subject: Re: zprofile and .profile sourcing
Date: Thu, 08 Sep 2022 18:30:44 -0400 [thread overview]
Message-ID: <0486fcad-b09d-430a-810b-0d178e52b2c6@www.fastmail.com> (raw)
In-Reply-To: <CAFMg86shQp+-kOd3WPTakhU8GtbNoLE7CKBYtZ5_Swbb_DPPcA@mail.gmail.com>
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
next prev parent reply other threads:[~2022-09-08 22:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-08 21:37 Piscium
2022-09-08 21:42 ` Eric Cook
2022-09-08 21:45 ` Eric Cook
2022-09-08 22:12 ` Piscium
2022-09-08 22:30 ` Lawrence Velázquez [this message]
2022-09-08 22:45 ` Piscium
2022-09-13 7:28 ` Piscium
2022-09-08 23:14 ` Felipe Contreras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0486fcad-b09d-430a-810b-0d178e52b2c6@www.fastmail.com \
--to=larryv@zsh.org \
--cc=groknok@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).