From unknown Mon Jun 16 23:45:40 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#42600 <42600@debbugs.gnu.org> To: bug#42600 <42600@debbugs.gnu.org> Subject: Status: /etc/profile not being sourced from interactive non-login shell Reply-To: bug#42600 <42600@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:45:40 +0000 retitle 42600 /etc/profile not being sourced from interactive non-login she= ll reassign 42600 guix submitter 42600 Kyle Andrews severity 42600 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 29 11:18:07 2020 Received: (at submit) by debbugs.gnu.org; 29 Jul 2020 15:18:07 +0000 Received: from localhost ([127.0.0.1]:33489 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k0nqI-0005d4-PV for submit@debbugs.gnu.org; Wed, 29 Jul 2020 11:18:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:42040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k0nqF-0005cv-K5 for submit@debbugs.gnu.org; Wed, 29 Jul 2020 11:18:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0nqF-0005kM-Ew for bug-guix@gnu.org; Wed, 29 Jul 2020 11:18:03 -0400 Received: from mail-io1-xd36.google.com ([2607:f8b0:4864:20::d36]:36821) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k0nqD-0002FQ-7j for bug-guix@gnu.org; Wed, 29 Jul 2020 11:18:03 -0400 Received: by mail-io1-xd36.google.com with SMTP id t15so15977167iob.3 for ; Wed, 29 Jul 2020 08:18:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=KXv4Ep/AqMPMNd9rRbm/i7INsU/nxqtLo75MSNssZiQ=; b=gU0wWYjkvgNFxZMXZf7bOowmTnXhIic/At6xu8QMp2FDLS6bJi+gJMpr2RQuGFCjTJ g/zDJ8FgklNsmDK9PdOrLHVYiOTqX/SlmeUhRj/N6u2Lrp/yOtXtVhg3jAgUacmmQ6Ms iNAJk7YGlEcGDnal8a/Wdy3M58zTHHpyME4rE1yRqLj8829ztOENOlLko7AZCatNhdqF a04M9/prx5UIFekRoV/UqPGNkLhkzol8aM2O8WNEcPek0laesb1QPS1Gyt3NEFFoZVkf UygTySLks2X25UW7/JdtUgjwvdLVfw/NpiUJYPAmacxqHPikdTx0sOaRTfnX8cJfyhgJ sMTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=KXv4Ep/AqMPMNd9rRbm/i7INsU/nxqtLo75MSNssZiQ=; b=H4ogHBh1m6oGyveSAfCIrKavV17W9bcElz58E7PdS5o3/5fptI9SYBVEBwTq7cLz1v L9aTIwx3KJwyLJ8unzwFrZL3qHZKPCjtGE8qOG2jRDDbgA65vhFt4dQh3f3pIlC3pem6 w5K4RsFSjPsi4M6YkdqH84B0t5Msq2N1c2lxThe+6ZbnyBlxQMSkOi27JWkiDVPalEe1 bOt7ousWQG73RjVE9wNM7s8JS6efxa3LuPu6GC2828EIbW/0O7pXLn4iARxlepv1LhAF 85h2cpd0WCMA0E7bnaRMcvSNbYE0Sy+LD7cJLm4i4R9iE2XjpqSubbm5YYmCxkXkIxxT QHNA== X-Gm-Message-State: AOAM530vlPBQ0PC/2E8ZXFAkcJc8VjRDcwrGHgrcy68NsKhXqUJ1qTbx QKQeGZ7vxqQOqNbRixLwOq4SQnKw X-Google-Smtp-Source: ABdhPJyJxnzpR1HZExKdPROmeXUEN756vFT5W22ldCPzP4tEdYYlsqrSvUliPNOdRcIjUb2FF1WG9A== X-Received: by 2002:a6b:5d0a:: with SMTP id r10mr11801058iob.186.1596035879378; Wed, 29 Jul 2020 08:17:59 -0700 (PDT) Received: from x1 ([2600:6c48:6d80:c6::d10]) by smtp.gmail.com with ESMTPSA id b74sm1385531ilb.64.2020.07.29.08.17.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2020 08:17:58 -0700 (PDT) User-agent: mu4e 1.4.10; emacs 26.3 From: Kyle Andrews To: bug-guix@gnu.org Subject: /etc/profile not being sourced from interactive non-login shell Date: Wed, 29 Jul 2020 11:17:58 -0400 Message-ID: <87eeouuz89.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::d36; envelope-from=kyle.c.andrews@gmail.com; helo=mail-io1-xd36.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.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*")) 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 13 22:52:16 2022 Received: (at 42600-done) by debbugs.gnu.org; 14 Jul 2022 02:52:16 +0000 Received: from localhost ([127.0.0.1]:48160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBoxb-0003fc-UC for submit@debbugs.gnu.org; Wed, 13 Jul 2022 22:52:16 -0400 Received: from mail-qk1-f180.google.com ([209.85.222.180]:38483) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBoxa-0003fK-8p for 42600-done@debbugs.gnu.org; Wed, 13 Jul 2022 22:52:15 -0400 Received: by mail-qk1-f180.google.com with SMTP id 20so363769qky.5 for <42600-done@debbugs.gnu.org>; Wed, 13 Jul 2022 19:52:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=LfcSf8gBdKgt00b7h9VTCJ06zsny03qN+KNVDRP0O6c=; b=j2ZWDzWn9zE0AHSaZ9mvEBR2cUsgeIcuyxwS008NrnpSmnFwaJJlB0PutvOAF093IO rX0mYXnW70ysWG6v01JUKbt6YHd/3AN77CovGZ5R4VbP4fh1sI8ZrQ0G4eLMvtsU6m1F 0Pk9tT9NK8dR5OOhFK64eNDA1mJSAN2/ZVAkYmXZtsQzJcK93ofhfITinUNgW83yY7oX i2sstkWXtyfZ37zaPKkpeIVKMCWCxe+bvhDkPjeYhqMHH5+MYnVVh7DZT6sm9UykPS3P f6OgjFK9rl4WaG9UOJumjpu901Wiy1b9psRX1hOiWjYDVzkBCtY4Ew5gBYce3n4yHXin Rebw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=LfcSf8gBdKgt00b7h9VTCJ06zsny03qN+KNVDRP0O6c=; b=DsJSbtxOAdJDCWQXNv4pUDmPUhllX2PLxx6W+F1yf56n49uOv5oStHgfFvspp+nQ/+ 0aZ2dVGmApLnLD16LzE5owYe6QbCG/AKsVeV7+zltfLC8MTyFja1f+24CtVT0Wze9AzA EJEXtQTNkUu6BbAYd9iLaXZGgB1dVGtYMn3JINpLW/LUHtCQ0yklrC0fF9Y/nV/3kYQp W26HAwgZd88v/sP9UAU5a+3Ov+7GC8BDAIIVerQLhDu7ofGusF9MEM9Fc6t5rlZ5FJxo 8K7B+GXhb9F/CmBUo0TT2bQ6qVtPN5y9dNCH4I/QqBSeqtctb5MWY9qZ6Zw6GDw7JiSu 2gxQ== X-Gm-Message-State: AJIora8Buld0jFQ3YCkmrS45tKwUxDys1FeYrueYbH1dN3LlxAWyXGYO M4BDKfIQdqNl5bdhdrnbqhkv/wmRUzKGsyAs X-Google-Smtp-Source: AGRyM1uhi9UrZmMYy2o4kMkVyRGYRwOEw9GzhOvvWmGllhXj5BHYlrTHLPaZHx1FFxPPYOUl3wR8mg== X-Received: by 2002:a05:620a:2455:b0:6b5:797a:5d85 with SMTP id h21-20020a05620a245500b006b5797a5d85mr4503539qkn.249.1657767128120; Wed, 13 Jul 2022 19:52:08 -0700 (PDT) Received: from hurd (dsl-10-133-49.b2b2c.ca. [72.10.133.49]) by smtp.gmail.com with ESMTPSA id s5-20020a05620a0bc500b006b555509398sm295302qki.136.2022.07.13.19.52.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 19:52:07 -0700 (PDT) From: Maxim Cournoyer To: Kyle Andrews Subject: Re: bug#42600: /etc/profile not being sourced from interactive non-login shell References: <87eeouuz89.fsf@gmail.com> Date: Wed, 13 Jul 2022 22:52:06 -0400 In-Reply-To: <87eeouuz89.fsf@gmail.com> (Kyle Andrews's message of "Wed, 29 Jul 2020 11:17:58 -0400") Message-ID: <87fsj4z9rd.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 42600-done Cc: 42600-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello Kyle, Kyle Andrews 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*")) 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 From unknown Mon Jun 16 23:45:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 11 Aug 2022 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator