From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Kyle Andrews <kyle.c.andrews@gmail.com>
Cc: 42600-done@debbugs.gnu.org
Subject: bug#42600: /etc/profile not being sourced from interactive non-login shell
Date: Wed, 13 Jul 2022 22:52:06 -0400 [thread overview]
Message-ID: <87fsj4z9rd.fsf@gmail.com> (raw)
In-Reply-To: <87eeouuz89.fsf@gmail.com> (Kyle Andrews's message of "Wed, 29 Jul 2020 11:17:58 -0400")
Hello Kyle,
Kyle Andrews <kyle.c.andrews@gmail.com> writes:
> Despite what it says in my ~.bashrc~, if I start a shell from Emacs with
> the elisp below, then `guix describe` does not work:
>
> (let ((default-directory "/ssh:me@remote:/home/me"))
> (shell "*shell<remote>*"))
It works for me:
/ssh:raisin:/home/mcournoyer/ #$ guix describe
guix 598f728
repository URL: https://git.savannah.gnu.org/git/guix.git
branch: master
commit: 598f7289db9955584457ffc11c8504f3938a1618
The remote machine is a Guix System though. If it as something else, it
could be more tricky, as then the shell used may not be Bash *compiled
with a non-default option* [0] to source ~/.bashrc on SSH connections.
[0] https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/bash.scm#n109
To force interactive mode, you could also use 'ssh remote bash -l'.
I've also written script with the shebang:
#/usr/bin/env -S bash -l
This works where 'env' is new enough to accept -S. Useful in Jenkins
shell snippets for example.
Anyway, I hope that helps. I don't see a bug here.
Closing.
Maxim
prev parent reply other threads:[~2022-07-14 2:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-29 15:17 bug#42600: /etc/profile not being sourced from interactive non-login shell Kyle Andrews
2022-07-14 2:52 ` Maxim Cournoyer [this message]
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=87fsj4z9rd.fsf@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=42600-done@debbugs.gnu.org \
--cc=kyle.c.andrews@gmail.com \
/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).