From 1ff6e687c058f4696ceda34ca002cfb98805d9dc Mon Sep 17 00:00:00 2001 From: Trevor Arjeski Date: Sat, 9 May 2026 20:34:17 +0000 Subject: shadow: use emulate to source profile scripts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since 306bd80481 ("system: Source scripts from the /etc/profile.d directory."), /etc/profile a glob which does not silently fail on zsh, which by default does not enable NULL_GLOB. * gnu/system/shadow.scm (%default-zprofile): Use emulate sh to source profile scripts. Change-Id: Ia647682fc7a35afe448d56a99f866f31da0de145 Merges: https://codeberg.org/guix/guix/pulls/8479 Signed-off-by: Nguyễn Gia Phong --- gnu/system/shadow.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/system') diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm index f0749972d2c..f864a4f692e 100644 --- a/gnu/system/shadow.scm +++ b/gnu/system/shadow.scm @@ -199,9 +199,9 @@ export PATH=/run/setuid-programs:$PATH (define %default-zprofile (plain-file "zprofile" "\ # Set up the system, user profile, and related variables. -source /etc/profile +emulate sh -c '. /etc/profile' # Set up the home environment profile. -source ~/.profile +emulate sh -c '. ~/.profile' ")) (define %default-xdefaults -- cgit v1.2.3