Skip to content
Snippets Groups Projects
Commit 669786da authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

system: Use "." instead of "source" in /etc/profile.

* gnu/system.scm (etc-directory)[profile]: Use "." instead of "source",
  the latter being Bash-specific.
parent 507c71d6
No related branches found
No related tags found
No related merge requests found
...@@ -479,7 +479,7 @@ (define* (etc-directory #:key ...@@ -479,7 +479,7 @@ (define* (etc-directory #:key
# Load the system profile's settings. # Load the system profile's settings.
GUIX_PROFILE=/run/current-system/profile \\ GUIX_PROFILE=/run/current-system/profile \\
source /run/current-system/profile/etc/profile . /run/current-system/profile/etc/profile
# Prepend setuid programs. # Prepend setuid programs.
export PATH=/run/setuid-programs:$PATH export PATH=/run/setuid-programs:$PATH
...@@ -488,7 +488,7 @@ (define* (etc-directory #:key ...@@ -488,7 +488,7 @@ (define* (etc-directory #:key
then then
# Load the user profile's settings. # Load the user profile's settings.
GUIX_PROFILE=\"$HOME/.guix-profile\" \\ GUIX_PROFILE=\"$HOME/.guix-profile\" \\
source \"$HOME/.guix-profile/etc/profile\" . \"$HOME/.guix-profile/etc/profile\"
else else
# At least define this one so that basic things just work # At least define this one so that basic things just work
# when the user installs their first package. # when the user installs their first package.
...@@ -508,7 +508,7 @@ (define* (etc-directory #:key ...@@ -508,7 +508,7 @@ (define* (etc-directory #:key
if [ -n \"$BASH_VERSION\" -a -f /etc/bashrc ] if [ -n \"$BASH_VERSION\" -a -f /etc/bashrc ]
then then
# Load Bash-specific initialization code. # Load Bash-specific initialization code.
source /etc/bashrc . /etc/bashrc
fi fi
")) "))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment