From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 28 04:31:58 2017 Received: (at 27386) by debbugs.gnu.org; 28 Jun 2017 08:31:58 +0000 Received: from localhost ([127.0.0.1]:41546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQ8OE-0005iY-Ft for submit@debbugs.gnu.org; Wed, 28 Jun 2017 04:31:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dQ8OD-0005iN-6v for 27386@debbugs.gnu.org; Wed, 28 Jun 2017 04:31:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQ8O4-00056T-Oq for 27386@debbugs.gnu.org; Wed, 28 Jun 2017 04:31:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQ8O4-00056N-M0 for 27386@debbugs.gnu.org; Wed, 28 Jun 2017 04:31:48 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:55508 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dQ8O4-0000tA-0A for 27386@debbugs.gnu.org; Wed, 28 Jun 2017 04:31:48 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: 27386@debbugs.gnu.org Subject: Re: bug#27386: offloading documentation and env References: <20170615170552.n7y5cxquqozpnesj@abyayala> <20170615211132.clkaslffc4a3l5bw@abyayala> <20170615221902.5ubbhriynb7wozrz@abyayala> <20170615223456.z5w2oaxifbah2ak2@abyayala> <87podq7cae.fsf@gnu.org> <20170626211511.ox5smekycmqz2vc3@abyayala> <87injh5z3h.fsf@gnu.org> <20170627145418.iq54zrhfzbr7vdtn@abyayala> <87d19p43wg.fsf@gnu.org> <20170627203136.rvl4dr6d3byzjein@abyayala> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 10 Messidor an 225 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Wed, 28 Jun 2017 10:31:45 +0200 In-Reply-To: <20170627203136.rvl4dr6d3byzjein@abyayala> (ng0@infotropique.org's message of "Tue, 27 Jun 2017 20:31:36 +0000") Message-ID: <8737ak1pji.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27386 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) ng0 skribis: > Ludovic Court=C3=A8s transcribed 2.2K bytes: >> ng0 skribis: >>=20 >> > Ludovic Court=C3=A8s transcribed 2.8K bytes: [...] >> The problem here is that >> /run/current-system/profile/share/guile/site/2.2, which is where the >> Guix modules are on GuixSD as I wrote above, is missing from the search >> path. >>=20 >> The session started when you run =E2=80=9Cssh shadownet env=E2=80=9D doe= s not spawn a >> login shell; thus ~/.profile and similar are *not* sourced. I=E2=80=99m= using > > I was aware of this, but I thought we had (guix) available nevertheless > and I was just pushing the wrong buttons. > >> Bash, so on my accounts, I have this in .bashrc (=E2=80=98.bashrc=E2=80= =99 is for >> non-login shells): >>=20 >> --8<---------------cut here---------------start------------->8--- >> if [ -n "$SSH_CLIENT" -a -z "`type -P cat`" ] >> then >> # We are being invoked from a non-interactive SSH session >> # (as in "ssh host command") but 'cat' cannot be found >> # in $PATH. Source /etc/profile so we get $PATH and other >> # essential variables. >> source /etc/profile >> fi >> --8<---------------cut here---------------end--------------->8--- >>=20 >> That way, =E2=80=9Cssh HOST COMMAND=E2=80=9D effectively gets the same e= nvironment as a >> login shell. > > I use the same on this computer, but at the end of it I source some > files, among them ~/.guix-profile/etc/profile > > I would guess that sourcing ~/.guix-profile/etc/profile gets into > the way and that moving this to .bash_profile could fix the issue. > > What do you think? ~/.guix-profile/etc/profile won't add /run/current-system/=E2=80=A6 to the search path. You really need to source /etc/profile, which in turn will source ~/.guix-profile/etc/profile (on GuixSD). HTH, Ludo=E2=80=99.