Today I ended up on possibly a related issue with ob-shell results.
Observations:
1. Issue triggered when using :session
2. Output text is OK for the the first shell src block's output. But for the second block, the output before '>' gets truncated.
Here's a minimal reproducible example:
=====
#+property: header-args:shell :exports both :results output :session *ob-shell-session-issue*
#+begin_src shell
echo "1 > 0"
#+end_src
#+RESULTS:
:
: 1 > 0
#+begin_src shell
echo "1 > 0"
#+end_src
#+RESULTS:
:
: 0
=====
The root cause seems to be similar, with detection of shell prompt: '>', '%', etc. when session is enabled.
On Sat, May 15, 2021 at 4:48 PM Bastien <
bzg@gnu.org> wrote:
Hi Nick,
Nick Savage <nick@nicksavage.ca> writes:
> So I have a patch written that doesn't completely fix the problem, but
> maybe makes enough progress that someone else can figure it out.
I hope you can continue to make progress on this (annoying) one.
Let us know!
--
Bastien