[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/08: system: Return early in skeleton '.bashrc' when the shell is non-
From: |
Marius Bakke |
Subject: |
04/08: system: Return early in skeleton '.bashrc' when the shell is non-interactive. |
Date: |
Wed, 1 Nov 2017 16:35:32 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 2c16be569c0ed21a44c615fb1285aeacd4ee7480
Author: Marius Bakke <address@hidden>
Date: Sat Oct 28 01:19:01 2017 +0200
system: Return early in skeleton '.bashrc' when the shell is
non-interactive.
* gnu/system/shadow.scm (default-skeletons)[bashrc]: Add return statement.
---
gnu/system/shadow.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm
index 58613e6..b662397 100644
--- a/gnu/system/shadow.scm
+++ b/gnu/system/shadow.scm
@@ -163,6 +163,9 @@ then
# is an SSH session (as in \"ssh host command\"), source
# /etc/profile so we get PATH and other essential variables.
[[ -n \"$SSH_CLIENT\" ]] && source /etc/profile
+
+ # Don't do anything else.
+ return
fi
# Adjust the prompt depending on whether we're in 'guix environment'.
- branch master updated (5010d0e -> 88b3501), Marius Bakke, 2017/11/01
- 01/08: gnu: Add perl-test-command., Marius Bakke, 2017/11/01
- 02/08: gnu: feh: Enable tests., Marius Bakke, 2017/11/01
- 03/08: system: Test for interactive shell instead of `cat` in skeleton '.bashrc'., Marius Bakke, 2017/11/01
- 04/08: system: Return early in skeleton '.bashrc' when the shell is non-interactive.,
Marius Bakke <=
- 06/08: gnu: libass: Update to 0.14.0., Marius Bakke, 2017/11/01
- 08/08: gnu: git: Update to 2.15.0., Marius Bakke, 2017/11/01
- 05/08: tests: ssh: Make sure we can run executables from PATH., Marius Bakke, 2017/11/01
- 07/08: gnu: imagemagick: Update to 6.9.9-21., Marius Bakke, 2017/11/01