From: Thiago Jung Bauermann via Guix-patches via <guix-patches@gnu.org>
To: 53623@debbugs.gnu.org
Cc: Michael Rohleder <mike@rohleder.de>, Leo Famulari <leo@famulari.name>
Subject: [bug#53623] [PATCH] gnu: mosh: Fix path to binaries.
Date: Sun, 30 Jan 2022 19:32:24 -0300 [thread overview]
Message-ID: <7617642.h6mQfoo1ea@popigai> (raw)
In-Reply-To: <Yfbiv98jmOC9mo2y@jasmine.lan>
Hello,
Em domingo, 30 de janeiro de 2022, às 16:10:55 -03, Leo Famulari escreveu:
> On Sun, Jan 30, 2022 at 07:44:45PM +0100, Michael Rohleder wrote:
> > Leo Famulari <leo@famulari.name> writes:
> > > I wonder, did you install mosh via config.scm? Or with `guix install
> > > mosh`?
> >
> > mosh is installed in the user profile via `guix install`.
> > perl is installed via config.scm.
>
> Ah. I had to install mosh via config.scm, probably to work around this
> issue.
>
> The environment created when logging in over SSH to use a
> non-interactive shell (such as for starting mosh) is not a complete
> environment and doesn't really work for packages installed with Guix.
>
> We arranged so that system-level packages would work correctly in this
> enviroment, but it's not trivial to design a solution for user-level
> packages:
>
> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/system/shadow.scm?id=
> 43dd34c7777a212c99a97da7a2c237158faa9a1b#n135
Ah, right. I ran into that when mosh’ing into the remote machine.
This is actually a bash limitation (or even bug, I’d argue), because it
doesn’t have an initialization file to set the environment for both
interactive and non-interactive shells.
zsh has ~/.zshenv, which is always read and is where I source
/etc/profile.d/*.sh (including guix.sh). So the solution was simply to
change the login shell from bash to zsh.
--
Thanks,
Thiago
next prev parent reply other threads:[~2022-01-30 22:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-29 14:29 [bug#53623] [PATCH] gnu: mosh: Fix path to binaries Michael Rohleder
2022-01-29 21:02 ` Leo Famulari
2022-01-29 22:27 ` Thiago Jung Bauermann via Guix-patches via
2022-01-30 10:14 ` Michael Rohleder
2022-01-30 18:35 ` Leo Famulari
2022-01-30 18:44 ` Michael Rohleder
2022-01-30 19:10 ` Leo Famulari
2022-01-30 22:32 ` Thiago Jung Bauermann via Guix-patches via [this message]
2022-03-06 21:39 ` Ludovic Courtès
2022-03-07 8:54 ` Michael Rohleder
2022-03-07 20:23 ` bug#53623: " Ludovic Courtès
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=7617642.h6mQfoo1ea@popigai \
--to=guix-patches@gnu.org \
--cc=53623@debbugs.gnu.org \
--cc=bauermann@kolabnow.com \
--cc=leo@famulari.name \
--cc=mike@rohleder.de \
/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).