From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6EcSCRiFz2I6UAAAbAwnHQ (envelope-from ) for ; Thu, 14 Jul 2022 04:53:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id ON7bCBiFz2KyPgAAauVa8A (envelope-from ) for ; Thu, 14 Jul 2022 04:53:12 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EF5AB39B3A for ; Thu, 14 Jul 2022 04:53:11 +0200 (CEST) Received: from localhost ([::1]:40812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBoyU-0005BV-Pi for larch@yhetil.org; Wed, 13 Jul 2022 22:53:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBoyM-0005AI-PB for bug-guix@gnu.org; Wed, 13 Jul 2022 22:53:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54265) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBoyM-0004un-Fn for bug-guix@gnu.org; Wed, 13 Jul 2022 22:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oBoyM-0003hB-FV for bug-guix@gnu.org; Wed, 13 Jul 2022 22:53:02 -0400 Subject: bug#42600: /etc/profile not being sourced from interactive non-login shell Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Thu, 14 Jul 2022 02:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 42600 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Kyle Andrews Cc: 42600-done@debbugs.gnu.org Mail-Followup-To: 42600@debbugs.gnu.org, maxim.cournoyer@gmail.com, kyle.c.andrews@gmail.com Received: via spool by 42600-done@debbugs.gnu.org id=D42600.165776713614116 (code D ref 42600); Thu, 14 Jul 2022 02:53:02 +0000 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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657767192; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-to:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=LfcSf8gBdKgt00b7h9VTCJ06zsny03qN+KNVDRP0O6c=; b=QF9lFx5zE+eWexP37RSQxfExS/gljsxS8FwOxXysr8xW9dMnTKIiMI27a+L81mMA45VpuU ZW2Bq6O52P4QJ0s0bEn/VQIcOjAe0vt0h1FBRArPx5xxAH3l+USaD+leheq4BhM49YA0FF GYH0ryGABEKI61CMYXFJp9mv5loo3BWLzOFXCm0RhWJ51yHZOIj1T7XvMG1BgD27dO9v+X 1elcIyaEaWupagFsGPV7zxWibL3pfr3WkF6yvM7EuPl/Fr3RhWqYYkkblTbP4Q45wosxo6 AfXPhooaZC0kAqRtV9QwRUvrnIfFVH7jRb2P02+L1OSGJpK111ObKQvZjQO6oQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657767192; a=rsa-sha256; cv=none; b=TpDkfNM+PoQL1Nl4Kw+wKZ01pb1j1TKo/n2+1tQD1wYnQ9cJCc+C/67Gd+obXwncQ9J26A FJX9EVZSM/b/EimsRVjBU9ToStDAXDOXM1ZV89oViQAZ4e4xKhjMgqpQC0JBQMgQ223xxu mFb9xBDkA0474uL1ergT+Uv1ykDCIHlXFps27FgtqOA1bixQZUdTBSApagWDPK5wX12nRC wFyxdhaeIag/VyW+8Qv+xw2FxtzQOBYg1p6o3toojDqQplu04b0tg7NYSQT67JEUmkTHQi Mw2U7OnCrx92fMrVHqwrF+UYN5nGdkmMusmqKBndzGIAN7PD0WbQ+0sSCNuFSw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=j2ZWDzWn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 4.96 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=j2ZWDzWn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: EF5AB39B3A X-Spam-Score: 4.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: sLqa6PSX0Dp1 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