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 23:46:20 +0200 Message-ID: <87k23vzsyb.fsf@gnu.org> References: <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> <8737ak1pji.fsf@gnu.org> <20170628114530.ca43xv4guqoa4mtv@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]:56409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQKnh-0004Qi-Uh for bug-guix@gnu.org; Wed, 28 Jun 2017 17:47:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQKne-0002pf-RM for bug-guix@gnu.org; Wed, 28 Jun 2017 17:47:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:40367) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dQKne-0002pV-OH for bug-guix@gnu.org; Wed, 28 Jun 2017 17:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dQKne-0006gc-Hk for bug-guix@gnu.org; Wed, 28 Jun 2017 17:47:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20170628114530.ca43xv4guqoa4mtv@abyayala> (ng0@infotropique.org's message of "Wed, 28 Jun 2017 11:45:30 +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: > I think the method as described never really worked. > > When I do as you (and the manual) suggested, I no longer > have any results for ssh host env | grep "GUILE_". > > When I extend it like this it works. I include the full > paste to show that previously I had the sourcing of /etc/profile > in it: > > user@shadownet ~$ cat .bashrc > # Bash initialization for interactive non-login shells and > # for remote shells (info "(bash) Bash Startup Files"). > > # Export 'SHELL' to child processes. Programs such as 'screen' > # honor it and otherwise use /bin/sh. > export SHELL > > 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 > > # Adjust the prompt depending on whether we're in 'guix environment'. > if [ -n "$GUIX_ENVIRONMENT" ] > then > PS1=3D'\u@\h \w [env]\$ ' > else > PS1=3D'\u@\h \w\$ ' > fi > source ~/.guix-profile/etc/profile > alias ls=3D'ls -p --color' > alias ll=3D'ls -l' > GUILE_LOAD_COMPILED_PATH=3D"${GUILE_LOAD_COMPILED_PATH}:/run/current-syst= em/profile/lib/guile/2.2/site-ccache:/run/current-system/profile/share/guil= e/site/2.2" > GUILE_LOAD_PATH=3D"${GUILE_LOAD_PATH}:/run/current-system/profile/share/g= uile/site/2.2" The difference compared to /etc/skel/.bashrc is the last two lines, right? On my GuixSD installation they=E2=80=99re not needed because /etc/profile sources /run/current-system/profile/etc/profile, which already defines these two variables. But maybe your global profile is slightly different from mine, which would explain this. FWIW I have: --8<---------------cut here---------------start------------->8--- $ guix package -I gui -p /run/current-system/profile guix 0.13.0-2.de9d8f0 out /gnu/store/js4ml3w20ysh4znp9wl0da0ljji4kisl-guix-= 0.13.0-2.de9d8f0 guile 2.2.2 out /gnu/store/5zx29y44nrqj0s8h3jlvlj82k8hj4dxs-guile-2.2.2 --8<---------------cut here---------------end--------------->8--- Anyway, if you have ideas on how to improve the doc, they=E2=80=99re welcom= e. Thanks for your feedback! Ludo=E2=80=99.