From: Marius Bakke <mbakke@fastmail.com>
To: mikael@djurfeldt.com
Cc: 40125@debbugs.gnu.org
Subject: bug#40125: Problem with guix offload: Remote channel closed
Date: Sun, 22 Mar 2020 23:58:55 +0100 [thread overview]
Message-ID: <87a7483sk0.fsf@devup.no> (raw)
In-Reply-To: <CAA2XvwJOxGDnE3uTNf0Co_=re61Pom3m=5mjqFNFpYte+i=JRA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 956 bytes --]
Mikael Djurfeldt <mikael@djurfeldt.com> writes:
>> It might be .bashrc is configured not to source the relevant scripts
>> when being invoked non-interactively, and/or through an SSH session.
>>
>
> You're right. It doesn't source the scripts. The PATH only becomes
> /usr/local/bin:/usr/bin:/bin:/usr/games in this case.
On Guix System, the default .bashrc does this:
if [[ $- != *i* ]]
then
# We are being invoked from a non-interactive shell. If this
# 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
IIRC Debian does something similar to detect if being invoked
non-interactively, but then just returns instead of sourcing anything.
Adding a line that sources ~/.guix-profile/etc/profile before the check
for an interactive shell might be enough in that case.
HTH,
Marius
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2020-03-22 23:00 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-18 19:58 bug#40125: Problem with guix offload: Remote channel closed Mikael Djurfeldt
2020-03-18 20:01 ` Mikael Djurfeldt
2020-03-21 15:50 ` Ludovic Courtès
2020-03-21 16:05 ` Mikael Djurfeldt
2020-03-21 20:00 ` Mikael Djurfeldt
2020-03-21 22:16 ` Ludovic Courtès
2020-03-22 18:21 ` Mikael Djurfeldt
2020-03-22 20:45 ` Ludovic Courtès
2020-03-22 21:40 ` Mikael Djurfeldt
2020-03-22 21:56 ` Mikael Djurfeldt
2020-03-22 22:13 ` Mikael Djurfeldt
2020-03-22 22:14 ` Mikael Djurfeldt
2020-03-22 22:24 ` Mikael Djurfeldt
2020-03-22 22:30 ` Marius Bakke
2020-03-22 22:44 ` Mikael Djurfeldt
2020-03-22 22:58 ` Marius Bakke [this message]
2020-03-22 23:12 ` Mikael Djurfeldt
2020-03-22 23:28 ` Mikael Djurfeldt
2020-03-22 23:40 ` Marius Bakke
2020-03-23 9:50 ` Ludovic Courtès
2023-08-02 15:09 ` Maxim Cournoyer
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=87a7483sk0.fsf@devup.no \
--to=mbakke@fastmail.com \
--cc=40125@debbugs.gnu.org \
--cc=mikael@djurfeldt.com \
/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).