From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SPlMNWexUGAFGAAA0tVLHw (envelope-from ) for ; Tue, 16 Mar 2021 13:23:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id cGIGMWexUGCGdAAAbx9fmQ (envelope-from ) for ; Tue, 16 Mar 2021 13:23:51 +0000 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 21063111DE for ; Tue, 16 Mar 2021 14:23:51 +0100 (CET) Received: from localhost ([::1]:44546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lM9fq-00052R-04 for larch@yhetil.org; Tue, 16 Mar 2021 09:23:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lM9db-0004Dr-Rg for emacs-orgmode@gnu.org; Tue, 16 Mar 2021 09:21:31 -0400 Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]:44158) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lM9dZ-0006SQ-RP for emacs-orgmode@gnu.org; Tue, 16 Mar 2021 09:21:31 -0400 Received: by mail-oi1-x22f.google.com with SMTP id w195so31436262oif.11 for ; Tue, 16 Mar 2021 06:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to; bh=W7kgcsL025x4nbtzWIg8kSPEJBuzbepmR0whiySqjPo=; b=F6/GkTd67GhMZfzJz281Eg7IB6SYt584a2Pv4Gv6EADlyrjmRpIzZCcg5bjtGtjMQo tMvCRxXgufzpc79cas0vXXmLoOzMnUPDwTvrneo4wwQ8hMQ596ReQSzL3OZ7JZQlgWVJ gpGTKJChfYqCVYquwA5SKi6ryAfSPdLGlQHVQsS1zA/ty4W7yP66A2dS5q2NLvuFH9n+ s0HkTS75ZCkIFBnnzMiSdB7xp/EbQJAP21Xr7e9SC8KSE26TR6+qWyDRdCguWQo4cpr5 sxMH1ZvNfynAhVXzD4Emvp+Ta/zqpK6zfQV7vj8vBJ/jpBpCdd65RVFbduuxdf4Cbx67 FY5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to; bh=W7kgcsL025x4nbtzWIg8kSPEJBuzbepmR0whiySqjPo=; b=m0kbFOURrDs/VpskbQzdVOu/NMBiWBi3qvVVlfr81BylzT2z9oupofGaE98iaFN5Zo Erwg9/DaUN06gp7VicYr/h3CVVeWgLlxmA7NoQWEn6MWdInoLBCShMJe7YXzrsstUy+d uBzwUJrzSkqWGIlhPgCLAs1rNwP2g5vmv+0hj0X+Bw5l6szv4J3GFqSjcqBA76AE2Vby uRCo5aBs4HdkBh3/EyVFf5YQDYjVPppZuTyjbUR6zOkJc7AoRhDjZiW4mzHKRnuX3PIr SO5xK4IXT/xPssdyUF6nykcHd93bJHNCSA+0TeQKQ/oqdWhdCnTkNz3mBe1VAa3vx04/ YhEw== X-Gm-Message-State: AOAM531AcPBktc+0lwN9ZcsxIeULhoq8PXn6iOneADjyKSXXE/mn9Wlp IIBOMd6Q3PiUxjVaLNBdnzy4jzQw6hmhbd5WwKDxWBRs X-Google-Smtp-Source: ABdhPJxeZqkJtzSZc5UyO6yzPmqVf3aofkekYTIbTMcVPv3YMr2fEubCBgHrK9bgQ2LzeETz6XO99wGAG0J8hWpBY7U= X-Received: by 2002:aca:1b16:: with SMTP id b22mr3334170oib.153.1615900887608; Tue, 16 Mar 2021 06:21:27 -0700 (PDT) MIME-Version: 1.0 References: <87a6r5l5bh.fsf@gmail.com> <87ft0x2hbe.fsf@gmail.com> In-Reply-To: From: George Mauer Date: Tue, 16 Mar 2021 08:21:15 -0500 Message-ID: Subject: Re: How to get shell source blocks to read my profile? To: emacs-orgmode Content-Type: multipart/alternative; boundary="00000000000065f28205bda73eb4" Received-SPF: pass client-ip=2607:f8b0:4864:20::22f; envelope-from=gmauer@gmail.com; helo=mail-oi1-x22f.google.com 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, HTML_MESSAGE=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-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: gmauer@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615901031; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=W7kgcsL025x4nbtzWIg8kSPEJBuzbepmR0whiySqjPo=; b=awXrxwz9zvUJXx38SLw2MxX9ijRkLNHbeaaHwMLr/B9EKTOUW5jccOcGX6j+Gu3x6F1cdT +mJrpMwOGo6F+v/BXzIIE0AjfjN/XEIePyTn7XRHQbQi/3UciK7HtqvDd6ToUaG+2aqONh hzX7/b8dcksKKX+qRbTgbQDp/kT4yFOHxZkNLqfEFAsqHlr5GksWltbK/Jx2p5oYjoSDxC R8FrvA1asEgwIo7cTknJc/zuktB15SxJcXO+4/Y7Is3PDazpFRDikqfKid1VfAvcGUXrS0 N3vis5bXWeWRtCHnfikE/yNieg4kHVeuVJMEjd9i5zAnAkNPfE7l6Eo8YV2L/A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615901031; a=rsa-sha256; cv=none; b=a/vlZ2VdWPHg0rwQLra8n5uaUajrcP2oJkgeJX4mR9UfWbv8oY6nyBsMoRFqWPNddyOF+t uqBaD4Of5YkCWMvaGvHf+4d94N21q+D5XFkJbc4JylTvIV3G1slWIjwDj9P6mCAs7Srj5A eIxm6mH3a66bJizZegOZ4WuAghxTs/SV/lLVhfSwFuyXoOZNIZHCnfbE2kxA89JeDDLNSc sjU9jXq4VBROV5Fc5+aaXtbS4v0/8kXHDhXcx0slefVTLoBlENA5OupUVAoQcy8xA1Skdt QA+t7jRKY4oPT1A+b38t/ojrbDRsdJtjp7NrOcTnwpe36NII3zlp98KDpnBqjg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="F6/GkTd6"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.10 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="F6/GkTd6"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 21063111DE X-Spam-Score: -2.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: nBntyn/KZBYu --00000000000065f28205bda73eb4 Content-Type: text/plain; charset="UTF-8" I understand why you say that maxim but testing that this worked was the first thing I did and it does work. I was surprised as well. I haven't debugged all the way into the eval functions to see why this works but my guess is that the authors were pretty smart about figuring out which executable to invoke. As for the problem I'm trying to solve, there isn't one exactly. This is more me hacking on something I don't fully understand because it regularly trips me up. I do still wonder what would be the disadvantage of just configuring it to do --login by default and doing all configuration in profile scripts. It would be unconventional yes, but it would also make dynamic scoping of environment variable effectively opt-in via --noprofile rather than opt-out (which imo is how it should be). I would assume that uses extra resources or risks improperly handling crashed processes, but I can't find anything to that effect in the docs On Tue, Mar 16, 2021, 07:32 Maxim Nikulin wrote: > On 16/03/2021 00:49, George Mauer wrote: > > shell-file-name: "/bin/zsh -i" > > I am afraid, you should be prepared to face some problem accidentally. > The value of this variable is used to execute the specified file > ("zsh -i" in the "/bin" directory, I do not think, you have such file), > not as a part of shell command. shell-file-name in namely file name to > be executed with shell-command-switch as first argument (separate > arguments, not merged into a string) to run shell commands (next argument). > > Environment variables could be set on OS level, inside emacs > https://www.gnu.org/software/emacs/manual/html_node/emacs/Environment.html > , etc. It is hard to suggest something since you have not described the > problem you are trying to solve. Tim in details explained why you > attempt to solve it did not work, but the problem (or the goal) is still > unknown. > > > --00000000000065f28205bda73eb4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I understand why you say that maxim but testing that this= worked was the first thing I did and it does work. I was surprised as well= . I haven't debugged all the way into the eval functions to see why thi= s works but my guess is that the authors were pretty smart about figuring o= ut which executable to invoke.

As for the problem I'm trying to solve, there isn't one exactly. T= his is more me hacking on something I don't fully understand because it= regularly trips me up.

= I do still wonder what would be the disadvantage of just configuring it to = do --login by default and doing all configuration in profile scripts. It wo= uld be unconventional yes, but it would also make dynamic scoping of enviro= nment variable effectively opt-in via --noprofile rather than opt-out (whic= h imo is how it should be). I would assume that uses extra resources or ris= ks improperly handling crashed processes, but I can't find anything to = that effect in the docs

On Tue, Mar 16, 2021, 07:32 Maxim Nikulin <= ;manikulin@gmail.com> wrote:<= br>
On 16/03/2021 00:49, George Mauer w= rote:
>=C2=A0 =C2=A0 shell-file-name: "/bin/zsh -i"

I am afraid, you should be prepared to face some problem accidentally.
The value of this variable is used to execute the specified file
("zsh -i" in the "/bin" directory, I do not think, you = have such file),
not as a part of shell command. shell-file-name in namely file name to
be executed with shell-command-switch as first argument (separate
arguments, not merged into a string) to run shell commands (next argument).=

Environment variables could be set on OS level, inside emacs
https://www.gnu= .org/software/emacs/manual/html_node/emacs/Environment.html
, etc. It is hard to suggest something since you have not described the problem you are trying to solve. Tim in details explained why you
attempt to solve it did not work, but the problem (or the goal) is still unknown.


--00000000000065f28205bda73eb4--