unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Marius Bakke <mbakke@fastmail.com>
To: 29035@debbugs.gnu.org
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	[thread overview]
Message-ID: <20171027235357.28600-2-mbakke@fastmail.com> (raw)
In-Reply-To: <20171027235357.28600-1-mbakke@fastmail.com>

* 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	other threads:[~2017-10-27 23:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-27 23:50 [bug#29035] .bashrc updates Marius Bakke
2017-10-27 23:53 ` [bug#29035] [PATCH 1/2] skel: Test for interactive shell instead of $SSH_CLIENT in .bashrc Marius Bakke
2017-10-27 23:53   ` Marius Bakke [this message]
2017-10-28  7:59     ` [bug#29035] [PATCH 2/2] skel: Return early from .bashrc when the shell is non-interactive Ludovic Courtès
2017-10-28  7:57   ` [bug#29035] [PATCH 1/2] skel: Test for interactive shell instead of $SSH_CLIENT in .bashrc Ludovic Courtès
2017-10-29 10:17     ` Marius Bakke
2017-10-29 14:24       ` Ludovic Courtès
2017-10-29 20:07         ` Marius Bakke
2017-10-29 21:26           ` Ludovic Courtès
2017-11-01 20:38             ` bug#29035: " Marius Bakke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171027235357.28600-2-mbakke@fastmail.com \
    --to=mbakke@fastmail.com \
    --cc=29035@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).