summaryrefslogtreecommitdiff
path: root/gnu/system
diff options
context:
space:
mode:
authorTrevor Arjeski <tmarjeski@gmail.com>2026-05-09 20:34:17 +0000
committerNguyễn Gia Phong <cnx@loang.net>2026-05-18 13:55:02 +0900
commit1ff6e687c058f4696ceda34ca002cfb98805d9dc (patch)
tree04a77bc879e034e795626ce6cb954ccfa731ef31 /gnu/system
parente97d0696c01b54ebbe3274e60ceab968a221d75a (diff)
shadow: use emulate to source profile scripts
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 <cnx@loang.net>
Diffstat (limited to 'gnu/system')
-rw-r--r--gnu/system/shadow.scm4
1 files changed, 2 insertions, 2 deletions
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
199(define %default-zprofile 199(define %default-zprofile
200 (plain-file "zprofile" "\ 200 (plain-file "zprofile" "\
201# Set up the system, user profile, and related variables. 201# Set up the system, user profile, and related variables.
202source /etc/profile 202emulate sh -c '. /etc/profile'
203# Set up the home environment profile. 203# Set up the home environment profile.
204source ~/.profile 204emulate sh -c '. ~/.profile'
205")) 205"))
206 206
207(define %default-xdefaults 207(define %default-xdefaults