From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#27386: offloading documentation and env Date: Wed, 28 Jun 2017 10:31:45 +0200 Message-ID: <8737ak1pji.fsf@gnu.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35739) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQ8OL-0003lN-85 for bug-guix@gnu.org; Wed, 28 Jun 2017 04:32:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQ8OI-0005A1-5U for bug-guix@gnu.org; Wed, 28 Jun 2017 04:32:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38869) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dQ8OI-00059w-2F for bug-guix@gnu.org; Wed, 28 Jun 2017 04:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dQ8OH-0005iq-SW for bug-guix@gnu.org; Wed, 28 Jun 2017 04:32:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20170627203136.rvl4dr6d3byzjein@abyayala> (ng0@infotropique.org's message of "Tue, 27 Jun 2017 20:31:36 +0000") 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.org@gnu.org Sender: "bug-Guix" To: 27386@debbugs.gnu.org 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.