From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id sFfjN5NVEGU53wAAauVa8A:P1 (envelope-from ) for ; Sun, 24 Sep 2023 17:28:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sFfjN5NVEGU53wAAauVa8A (envelope-from ) for ; Sun, 24 Sep 2023 17:28:20 +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 7159A3B9B8 for ; Sun, 24 Sep 2023 17:28:19 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=laesvuori.fi header.s=mail header.b=KdabAZj+; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695569299; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc: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=hJJ+ZzekgKiI1VrVuEfxS5wCdUZkC2u31RK9H/wPCrM=; b=C0f6xV56SJIlqNSt+EJgqWIuJZzWKp9fVZKupyNWHsNMNshVtc+C5poIiuNcSQgLkD216f ur+LdKNIQxLuX9iBZ/JKIKoc2rx/OJtf0dfblVqZR+BgnZw/7igquATk7DAy3rLvXvNbA6 P24JiUgwLqYM+y3hzVJ3KCqvqmFjaSYB20EWVk6Eh7Sfu09/xtZM4Ie2bqP+1eTAgKnCZM pRUWJ6B25npX5o5FMqd8mFnkOXy5xqgWnVIeDJug1G2lswrHj4no4pUU0c06QaFqxIZrHy aOWrYJTmfxFuWge8QWR7ZOsFLIhs2+bJl7Sm8b+4sgYBZobBoEzxvH1aF/Y0Vg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695569299; a=rsa-sha256; cv=none; b=nrCVBUyS6TYLe5CRjcUnshebpSmZZvA4mnYCt1uzdnxHT2ZMQ5RjflTvt2qo3GwqzqrWRR 1rmXnb4fRX+Ynd8y230nIy+0YH2BJ92Vv2zoYV2ubMassKrcDBvHqGI3kOvoe5nU0V108z 7c0LZ1tadpRKUm9DWWkxDLmQGb57lB0STSoFXlu+3FJl7WN8WeFUw/Tbvt0GOwR8t/HmJt urfl+P87gtGRwVKP1dSmvS5c8P2ktQbrD1mq2zYrHmG6s+WRi4oMRYz1DfuU8/yMmSPP7B x3ENoJUC1aJyaiX4EG3zarkkUkMnUFQk3KBuEIRhziRXi3kUQechnc+3Q+OnZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=laesvuori.fi header.s=mail header.b=KdabAZj+; 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"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qkR1U-0002D2-Mv; Sun, 24 Sep 2023 11:27:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qkR1T-0002Cp-3m for bug-guix@gnu.org; Sun, 24 Sep 2023 11:27:51 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qkR1S-0003XM-RG for bug-guix@gnu.org; Sun, 24 Sep 2023 11:27:50 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qkR1e-0004f3-87 for bug-guix@gnu.org; Sun, 24 Sep 2023 11:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#66168: zsh home service breaks guix shell via ssh Resent-From: Saku Laesvuori Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 24 Sep 2023 15:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66168 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Malte Frank Gerdes Cc: 66168@debbugs.gnu.org Received: via spool by 66168-submit@debbugs.gnu.org id=B66168.169556925817883 (code B ref 66168); Sun, 24 Sep 2023 15:28:02 +0000 Received: (at 66168) by debbugs.gnu.org; 24 Sep 2023 15:27:38 +0000 Received: from localhost ([127.0.0.1]:43425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkR1C-0004eK-5a for submit@debbugs.gnu.org; Sun, 24 Sep 2023 11:27:37 -0400 Received: from vmi571514.contaboserver.net ([75.119.130.101]:58638 helo=mail.laesvuori.fi) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkR16-0004e6-4h for 66168@debbugs.gnu.org; Sun, 24 Sep 2023 11:27:32 -0400 Received: from X-kone (88-113-24-127.elisa-laajakaista.fi [88.113.24.127]) by mail.laesvuori.fi (Postfix) with ESMTPSA id 926B9340160; Sun, 24 Sep 2023 17:27:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=laesvuori.fi; s=mail; t=1695569270; bh=tt7zqQyBwWI7XkX693j13JX6O4hNoIbVp+tUztzxKX0=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=KdabAZj+CRNsBghTo4oT+khkezPvZS8oCKrN/4D/uV1DDx8r2ecC0UW55Q92qrGRS dcdZo7sUUtxU1R0EMlD9OcJF1shsc/OKECTm44FDhpbsxpLXQ06dGuLKiafSW8/Jud m0J8LHGY/sPmHPY3awsvZF8hv2nQVRZPUs2EEahg= Date: Sun, 24 Sep 2023 18:27:08 +0300 Message-ID: References: <868r8xrxu4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ef4ilseqyjhxk2nj" Content-Disposition: inline In-Reply-To: <868r8xrxu4.fsf@gmail.com> 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: , Reply-to: Saku Laesvuori From: Saku Laesvuori via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -8.37 X-Migadu-Spam-Score: -8.37 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Queue-Id: 7159A3B9B8 X-TUID: FQQvfZH2Cmcr --ef4ilseqyjhxk2nj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Sep 23, 2023 at 12:19:10PM +0200, Malte Frank Gerdes wrote: > I noticed that after connecting via ssh the profile that gets created > when doing `guix shell' is not sourced, therefore the environment > variables are not correct. This seems to be because guix home inserts > "[ -n \"$SSH_CLIENT\" ] && source /etc/profile" into the zshenv file. I > assume this is meant to ensure that /etc/profile is sourced because ssh > does not start a login shell? That is correct, it was added in because commands like `ssh host -- cmd` (and commands depending on ssh such as `git pull/push`) failed.=20 > Anyway, removing that line makes everything work normally. So am i > doing it wrong or is this actually unnecessary? I can reproduce this: ``` $ ssh localhost $ guix shell gnuplot $ gnuplot zsh: command not found: gnuplot ``` However (still within the ssh session) ``` $ guix shell gnuplot -- gnuplot [gnuplot opens as expected] ``` and weirdly enough ``` $ guix shell --check gnuplot guix shell: checking the environment variables visible from shell '/gnu/sto= re/i4rj0banq044423if5xwb3df723g14r9-zsh-5.9/bin/zsh'... guix shell: All is good! The shell gets correct environment variables. $ gnuplot zsh: command not found: gnuplot ``` I don't really know what is happening here. Why does it work when running the command directly and why does `guix shell --check` claim that everything is correct when clearly something is wrong? If I understand correctly `.zshenv` should be sourced in all these cases but for some reason the problems only occur in some of them. Any ideas? --ef4ilseqyjhxk2nj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoMkZR3NPB29fCOn/JX0oSiodOjIFAmUQVUwACgkQJX0oSiod OjIKKxAAr1mNjtOoi5v5cqLEdmUTmv4KfAtdrpIUJ4orKhsjYtWDMVu9Bb180NAK JV2SkkgqoKFGLLXF3qdiURSrUXoju051Rx8OLkiTo9DC3FvJ9/etr9GzMjJo+e07 tMe1gX6DlqxV3vQ0zBRAIbfcIDmz3gWb2c1VHV9ElFErbbl5FUeh3my56zQDVDwI hR1pmQnwXJq+BKkvwCLr6qir47GpNk8Qnr/2oTF2rB92auroGLmtKm8z9DKcHv6v S8lUpl+5gojHZjJFmaenUz+GcqnWGLFy3QXBWmGD2KBkszkPQMzQP1ytFA8djOzI /8XEg5rWo501f+Gr/CAQxQiE3W1/3JSDxcY7wbmswSZwjb96De39RuDRAO0RzYLu EsJUTlNZioXXbv1NrI8am7y4rGcRSCs+L3Zf4UHOnv+9jYtONaV84q7r5zZxoUUr 9UjkS/hEs3pm57WYzmqwrzli3vmZ0pajxi9osliH9htmSNEIOWdHDvBuHFfaF0L5 rSHIti1i1si4xe7rT3qizibd67EDO+00zdEPtztzQv8Yiir5p62bCNaZ7DF4jYoU jP20tlSU+GyU+qk4UQKdYEZpV/L8vUk1gf/R3/JtAggx/9uvAVTQFLIKaigzMV2S oKA7uKXt7/BaCooNyBR5SGkbNm87dhgWpB62DSkCLvYdMvfr2UA= =MDMH -----END PGP SIGNATURE----- --ef4ilseqyjhxk2nj--