GNU bug report logs - #29035
.bashrc updates

Previous Next

Package: guix-patches;

Reported by: Marius Bakke <mbakke <at> fastmail.com>

Date: Fri, 27 Oct 2017 23:51:02 UTC

Severity: normal

Done: Marius Bakke <mbakke <at> fastmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: ludo <at> gnu.org (Ludovic Courtès)
To: Marius Bakke <mbakke <at> fastmail.com>
Cc: 29035 <at> 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 09:59:10 +0200
Marius Bakke <mbakke <at> fastmail.com> skribis:

> * 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

LGTM, thanks!

Ludo’.




This bug report was last modified 7 years and 207 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.