From: Suhail Singh <suhailsingh247@gmail.com>
To: Matt <matt@excalamus.com>
Cc: "Suhail Singh" <suhailsingh247@gmail.com>,
"Org mailing list" <emacs-orgmode@gnu.org>
Subject: Re: ob-shell: possibly missing initiate-session functions?
Date: Sun, 16 Jun 2024 18:54:06 -0400 [thread overview]
Message-ID: <87bk40zegh.fsf@gmail.com> (raw)
In-Reply-To: <1902265471c.11e1aa5961508019.932872149697165868@excalamus.com> (matt@excalamus.com's message of "Sun, 16 Jun 2024 20:53:01 +0200")
Matt <matt@excalamus.com> 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
next prev parent reply other threads:[~2024-06-16 22:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-10 2:48 ob-shell: possibly missing initiate-session functions? Suhail Singh
2024-06-16 18:53 ` Matt
2024-06-16 22:54 ` Suhail Singh [this message]
2024-06-17 15:45 ` Ihor Radchenko
2024-06-17 18:29 ` Suhail Singh
2024-06-18 12:46 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bk40zegh.fsf@gmail.com \
--to=suhailsingh247@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=matt@excalamus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).