From: Ihor Radchenko <yantar92@posteo.net>
To: Matt <matt@excalamus.com>, Bastien <bzg@gnu.org>
Cc: osher jacob <osherz5@gmail.com>, emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: [BUG] ob-shell doesn't evaluate last line on Windows (cmd/cmdproxy) [9.6.1 ( @ c:/Users/Osher/AppData/Roaming/.emacs.d/elpa/org-9.6.1/)]
Date: Thu, 26 Jan 2023 09:51:19 +0000 [thread overview]
Message-ID: <87fsbxwrmw.fsf@localhost> (raw)
In-Reply-To: <185ec3f46e2.f96332c0506072.2994965640426706061@excalamus.com>
Matt <matt@excalamus.com> writes:
> > ---- On Fri, 20 Jan 2023 04:27:18 -0500 Ihor Radchenko wrote ---
> > I think `org-babel--shell-command-on-region' will be more appropriate.
> > Because similar issues might appear when attempting to evaluate other
> > code blocks on Windows, where `shell-file-name' is set to cmdproxy.exe.
>
> Is something like this what you're thinking? Or, do we want to check explicitly for "cmdproxy.exe"?
AFAIK, extra newline should be safe in all other script languages.
> Also, this bug isn't currently tracked in Woof!. I'm not able to confirm it, but since we're putting in a fix, should be add it anyway?
Your message with a patch is supposed to be auto-detected... (It is not,
which is a bug)
Bastien, heads up.
Do not worry about Woof! just yet. The new version is not yet officially
used. Bastien is still polishing the code.
> - nil shell-command-switch command))
> + nil shell-command-switch
> + ;; Pass newline to satisfy Windows
> + ;; cmdproxy.exe prompt for More.
> + ;;
> + ;; See:
> + ;; `https://list.orgmode.org/orgmode/87bkmttv2h.fsf@localhost/'
> + (concat command "\n")))
This will add a newline to "cmdproxy.exe" command -> "cmdproxy.exe\n".
You should instead look into `org-babel--write-temp-buffer-input-file'.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
next prev parent reply other threads:[~2023-01-26 9:52 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-16 16:27 [BUG] ob-shell doesn't evaluate last line on Windows (cmd/cmdproxy) [9.6.1 ( @ c:/Users/Osher/AppData/Roaming/.emacs.d/elpa/org-9.6.1/)] Osher Jacob
2023-01-16 21:40 ` Matt
2023-01-17 1:07 ` Matt
2023-01-17 19:53 ` Osher Jacob
2023-01-18 5:09 ` Matt
2023-01-18 9:05 ` Ihor Radchenko
2023-01-19 16:28 ` Osher Jacob
2023-01-20 4:29 ` Matt
2023-01-20 9:27 ` Ihor Radchenko
2023-01-23 3:12 ` Matt
2023-01-23 11:42 ` Ihor Radchenko
2023-01-26 4:04 ` Matt
2023-01-26 9:51 ` Ihor Radchenko [this message]
2023-01-30 6:00 ` Matt
2023-01-30 14:00 ` Ihor Radchenko
2023-01-30 17:08 ` Matt
2023-02-01 12:05 ` Ihor Radchenko
2023-02-01 20:21 ` Matt
2023-01-20 9:24 ` 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=87fsbxwrmw.fsf@localhost \
--to=yantar92@posteo.net \
--cc=bzg@gnu.org \
--cc=emacs-orgmode@gnu.org \
--cc=matt@excalamus.com \
--cc=osherz5@gmail.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).