From: Gennady Uraltsev <gennady.uraltsev@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Bug: ob-eshell session breaks with long running commands [9.3.1 (release_9.3.1-73-g93c11d @ /home/guraltsev/.emacs.d/straight/build/org/)]
Date: Wed, 08 Jan 2020 12:53:57 +0000 [thread overview]
Message-ID: <87eewa6rdm.fsf@malevich.i-did-not-set--mail-host-address--so-tickle-me> (raw)
Hello everyone,
Org babel eshell does not work well with the :session argument. In
particular if the the command does not exit immediately then the results
can be arbitrary and can vary from one call to the other. Also, the
results often include the actual calling line.
Notice that executing things with sh src code does not have this session
management problem. So it seems to really be bug.
This code illustrates the problem.
#+BEGIN_SRC eshell :results output drawer
echo test
#+END_SRC
#+RESULTS:
:results:
test
:end:
#+BEGIN_SRC eshell :results output drawer :session test1
echo test
#+END_SRC
#+RESULTS:
:results:
test
:end:
#+BEGIN_SRC eshell :results output drawer
sleep 1 ; echo test
#+END_SRC
#+RESULTS:
:results:
test
:end:
#+BEGIN_SRC eshell :results output drawer :session test2
sleep 1 ; echo test
#+END_SRC
#+RESULTS:
:results:
~/Mail $ sleep 1 ; echo test
:end:
Best,
Gennady
Emacs : GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.10)
of 2019-08-29
Package: Org mode version 9.3.1 (release_9.3.1-73-g93c11d @ /home/guraltsev/.emacs.d/straight/build/org/)
current state:
==============
(setq
org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
org-link-shell-confirm-function 'yes-or-no-p
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function
org-edit-src-content-indentation 0
org-src-tab-acts-natively t
org-odt-format-headline-function 'org-odt-format-headline-default-function
org-special-ctrl-a/e t
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-reveal-start-hook '(org-decrypt-entry)
org-modules '(ol-bbdb ol-bibtex ol-docview ol-eww ol-gnus org-id ol-info
ol-irc ol-mhe org-mouse org-protocol ol-rmail ol-w3m
ol-eshell ol-git-link ol-man org-toc)
org-id-link-to-org-use-id 'create-if-interactive-and-no-custom-id
org-mode-hook '(#[0
"\b\205.
reply other threads:[~2020-01-08 12:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=87eewa6rdm.fsf@malevich.i-did-not-set--mail-host-address--so-tickle-me \
--to=gennady.uraltsev@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).