[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: system: Skeleton '.bashrc' now exports the 'SHELL' variable.
From: |
Ludovic Courtès |
Subject: |
01/01: system: Skeleton '.bashrc' now exports the 'SHELL' variable. |
Date: |
Mon, 16 Mar 2015 22:31:06 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit 2f094a69f0d601d3b42052208eff0d6244ca7db1
Author: Ludovic Courtès <address@hidden>
Date: Mon Mar 16 21:49:39 2015 +0100
system: Skeleton '.bashrc' now exports the 'SHELL' variable.
* gnu/system/shadow.scm (default-skeletons)[bashrc]: Export 'SHELL'.
---
gnu/system/shadow.scm | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm
index 4cb8018..16b9e4b 100644
--- a/gnu/system/shadow.scm
+++ b/gnu/system/shadow.scm
@@ -123,6 +123,10 @@ if [ -f ~/.bashrc ]; then . ~/.bashrc; fi\n"))
# Bash initialization for interactive non-login shells and
# for remote shells (info \"(bash) Bash Startup Files\").
+# Export 'SHELL' to child processes. Programs such as 'screen'
+# honor it and otherwise use /bin/sh.
+export SHELL
+
if [ -n \"$SSH_CLIENT\" -a -z \"`type -P cat`\" ]
then
# We are being invoked from a non-interactive SSH session