From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: bug#40125: Problem with guix offload: Remote channel closed Date: Sun, 22 Mar 2020 23:58:55 +0100 Message-ID: <87a7483sk0.fsf@devup.no> References: <87eetl1zce.fsf@gnu.org> <87pnd5wdyq.fsf@gnu.org> <8736a0uni2.fsf@gnu.org> <87d0943tuy.fsf@devup.no> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:57948) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jG9Zc-0000jP-7f for bug-guix@gnu.org; Sun, 22 Mar 2020 19:00:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jG9Zb-0004hH-1R for bug-guix@gnu.org; Sun, 22 Mar 2020 19:00:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45163) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jG9Za-0004hB-Uf for bug-guix@gnu.org; Sun, 22 Mar 2020 19:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jG9Za-00015p-TH for bug-guix@gnu.org; Sun, 22 Mar 2020 19:00:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: mikael@djurfeldt.com Cc: 40125@debbugs.gnu.org --=-=-= Content-Type: text/plain Mikael Djurfeldt 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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl537a8ACgkQoqBt8qM6 VPqDBAgAwpbTilYRyr7T54ErSvY1dMZyHojixTYvVT6JMWL67X0sJFkCxtH3YLW4 RDzmw6AzsFnsGypwNrz/QQ7a4ztyJTXzGs8N1Ay2+saNBqTbBLpUZIeQ6uYm/a02 efUCUnjZJorgep1ccvC6ipoZvyQjWejA4UFiGPXXPKtSUgvqPBoXqITYxDcre+oy 0w3Vw4BK6Fm3ogN1BNfkbUy/DhRDmQmxueTAytRHdEmTTBRRfPBeSndYM7dWo/Sk /qkHELtHdeR6Yk223IkYn97dWCmD9FH8nkC2obSZMEhpRCSQCDtodBgzEOW+lPbA otkoP2A7Xk+slfh2MhYTEqXNVwmykg== =qt7Z -----END PGP SIGNATURE----- --=-=-=--