guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#29035] [PATCH 2/2] skel: Return early from .bashrc when the shell i


From: Marius Bakke
Subject: [bug#29035] [PATCH 2/2] skel: Return early from .bashrc when the shell is non-interactive.
Date: Sat, 28 Oct 2017 01:53:57 +0200

* gnu/system/shadow.scm (default-skeletons): 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 475960b89..8d8dbc70a 100644
--- a/gnu/system/shadow.scm
+++ b/gnu/system/shadow.scm
@@ -163,6 +163,9 @@ then
     # (as in \"ssh host command\").  Source /etc/profile so we
     # get $PATH and other essential variables.
     source /etc/profile
+
+    # Don't do anything else.
+    return
 fi
 
 # Adjust the prompt depending on whether we're in 'guix environment'.
-- 
2.14.3






reply via email to

[Prev in Thread] Current Thread [Next in Thread]