From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id wDKHA0xtb2ZtbwEAe85BDQ:P1 (envelope-from ) for ; Sun, 16 Jun 2024 22:55:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id wDKHA0xtb2ZtbwEAe85BDQ (envelope-from ) for ; Mon, 17 Jun 2024 00:55:08 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=cZJT63+3; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718578508; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ivJEtBU7Mx7xmv50JwlNKmalKLw0/njHn675dcW4kc0=; b=YIyw/G2L73OJHKDKBKevgTOBJt+e1v4s5bsvP902W0iVmE5QO3V5UM/LjWls3fO5ruQjZx pbIknFmfR1Fg4CNPmVGSXEn34D5b3bpiFl6CdiQU0Dbc/M/KeNsxUpcez1RqXzRVvseejY 7hzkOHMsAgC0rfL0CUksQ20W/jrWjjgx/yauw2xm5ose4oYNhnIQxFfztGD49ha0tPa2xv TGysrB9W6XdRloCX32EDBsXUnNWVnSdu5YfVeyYiWcKZ2rIq2py9PqM3HE0A3pnkbNAN0d OkQ6aG2D3dcVVq5pbKcYSYAjLaSECoZIca5B5CjYaJJP0dQfVxMFCjN0loHOeQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=cZJT63+3; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718578508; a=rsa-sha256; cv=none; b=PZyDUbRaDJVEIMG/OaDGRkZwuKSfAYMGBV2Oz4wM+fMjyepyQq1IoNv71um4iO5Yt+Um9w RQ3WlCX2v6Ju6fchsRvy6ksdkN2FzA1sql4d9+erdmyiiMbg0moPf5UALBzYMJW2JDRsT3 zztFXKxOlVSOdYdrgrDmRtvsibDELINTDhyY5Stj8hxwcy4G7vpdQo1SN2ydF8vT8GG+lw IdNw/83IfZzYDoRZrEybo4XmnY07hmzPSmewyd2jrsxyQo3RVEIOwNip5WQtERhaFx/Hgk 6A7p14LzRoKj8zWf6lXjzxcQINXXpdj/sXzgKeDzYGWeKDm/ateygLc8r0h07w== 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 9A9873AE2A for ; Mon, 17 Jun 2024 00:55:07 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sIylI-0005Gf-4e; Sun, 16 Jun 2024 18:54:12 -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 1sIylG-0005GG-U8 for emacs-orgmode@gnu.org; Sun, 16 Jun 2024 18:54:10 -0400 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sIylF-00035x-GH for emacs-orgmode@gnu.org; Sun, 16 Jun 2024 18:54:10 -0400 Received: by mail-qt1-x844.google.com with SMTP id d75a77b69052e-43fb8cdb29eso3227911cf.3 for ; Sun, 16 Jun 2024 15:54:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718578448; x=1719183248; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=ivJEtBU7Mx7xmv50JwlNKmalKLw0/njHn675dcW4kc0=; b=cZJT63+31tKeIRK3PoeaKY5NS195Hi/ChDdP3aXi7tH9vZiz1Lx+hK+uy4VtEL2vK6 BupMCPLPHmgO4J6nZc1tuShB+Y2ElsAffL5M3c4MTYu7kPwupCmEaETnuOQ19xW2bxvV y4IQh6psRrFBppErikgIRBP0u5YdpFxurv0OIBS1v1Fkh/AATSj8qFhN54GTe78kPQXj bOL/HAFmL8kaPTJdDo8bPUUqF6DNleSE7YpAOMCKAESZ9YiDaGuaj/yTqa0HDmXQeeEy f+aktrHWtW51SyPoSJzOikJ77UD+wac751hI5UfVPFdzRehXpc+WgO8TLcFkucVS40yL hCTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718578448; x=1719183248; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ivJEtBU7Mx7xmv50JwlNKmalKLw0/njHn675dcW4kc0=; b=krFaMfYd2r0IwZyea/EhYItxvBx9tU+9vcKwSsN2xYb2+FShj61tDM0MWZ8FmDcjP1 8nhsU+y6B7tjLFrx880QEDGV6UwxxW+RnXGC7VoyYD3fZBCsi2nL/nqBLLs6RycdEAnq 7cCiRgthCPj0s+5g0fY0tLozc5bSH+EiezgUIsyrVQrTpRHXuJjxj2YuYTcFVWmNYekk oeX6ejhf/BD7yx6oiTeEv2fLJgUtZklvs3VR0QxDK9sjpHkp7HBd+J/n/NrEyIewq7CO 8okl4/72iWj/8Cg6R8sdCHAr0fxMu2tGBxWR/mS1y+w+CO0YsA1Nlh2sNdCop5MYOoaG eirg== X-Forwarded-Encrypted: i=1; AJvYcCWuLKNUidjUwtFHnvC89H55vz1CyQkMFGhMZQns9ef6+eRKDXc0J7vdkTnXz7nyvXzWRCRMUc2H514m0YC9cPqi4Dmz4EI= X-Gm-Message-State: AOJu0Yx1LC/7vAHUCvHT9cZndaBeaR0Q5JbT8JwyLKxoWAbgQZDCLgLd EpmF3YSmjv4Vi2PA2AkIyn/6AWdWU0V0uTJOljwPf/hBEOIT31k6Gi+ZEScQmFc= X-Google-Smtp-Source: AGHT+IHjs+HUCPVAh4cjEsilGGiPGHLkmjtvNn/3ZS2xo6byywTuGqkUZW5Fj1hteYZwgrnlsM+iWQ== X-Received: by 2002:ac8:7d51:0:b0:442:1a26:b692 with SMTP id d75a77b69052e-4421a26bb3dmr80825991cf.1.1718578447882; Sun, 16 Jun 2024 15:54:07 -0700 (PDT) Received: from gnus (static-198-54-132-177.cust.tzulo.com. [198.54.132.177]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-4421772802fsm32663261cf.58.2024.06.16.15.54.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 15:54:07 -0700 (PDT) From: Suhail Singh To: Matt Cc: "Suhail Singh" , "Org mailing list" Subject: Re: ob-shell: possibly missing initiate-session functions? In-Reply-To: <1902265471c.11e1aa5961508019.932872149697165868@excalamus.com> (matt@excalamus.com's message of "Sun, 16 Jun 2024 20:53:01 +0200") References: <87cyop3445.fsf@gmail.com> <1902265471c.11e1aa5961508019.932872149697165868@excalamus.com> Date: Sun, 16 Jun 2024 18:54:06 -0400 Message-ID: <87bk40zegh.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::844; envelope-from=suhailsingh247@gmail.com; helo=mail-qt1-x844.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 9A9873AE2A X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.69 X-Spam-Score: -8.69 X-TUID: uRGWtzDuHCe8 Matt writes: > I agree, defining an alias within "org-babel-shell-initialize" seems > reasonable. However, it's important that "explicit-shell-file-name" > is set to the appropriate shell name. In your case, I suspect it's a > coincidence that aliasing "org-babel-sh-initiate-session" works. A > "shell" block defaults to "explicit-shell-file-name". This, I > suspect, is "bash" in your case, yet may be something different on > another system. In my case, explicit-shell-file-name has the default value of nil. However, shell-file-name (which is initialized from $SHELL) is "/bin/bash". > The alias would need to close over "explicit-shell-file-name" like is > done with "org-babel-execute:name". And what should be done in the case of org-babel-shell-initiate-session? Should shell-file-name and explicit-shell-file-name remain unaltered from their existing settings in that case? I'm happy to send a patch, though it may be simpler for you to do so yourself in case you have write-access. Please let me know. -- Suhail