bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#42600: /etc/profile not being sourced from interactive non-login she


From: Kyle Andrews
Subject: bug#42600: /etc/profile not being sourced from interactive non-login shell
Date: Wed, 29 Jul 2020 11:17:58 -0400
User-agent: mu4e 1.4.10; emacs 26.3

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>*"))

Of course, if I start a shell normally with ~M-x shell~ in Emacs, then
type out the ssh command, ~/etc/profile~ does get sourced.

I learned about this by following the advice of nckx from IRC, placing
`set -x` in my .bash_profile. Following the former routine in Emacs I
see nothing, but with the explicit ssh call I do see all the commands
echo'd.

Is this a bug in Guix or Emacs? In other words, should the Bash
configuration files be extended to handle this case? I thought my system
might be broken, but nckx showed me that I could just `. /etc/profile`
and then guix describe started working again.

Best Regards,
Kyle






reply via email to

[Prev in Thread] Current Thread [Next in Thread]