[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: org-babel-execute-src-block filters characters from :session *shell*
From: |
Cook, Malcolm |
Subject: |
RE: org-babel-execute-src-block filters characters from :session *shell* output |
Date: |
Fri, 14 Jun 2024 14:29:23 +0000 |
>"Cook, Malcolm" <mailto:MEC@stowers.org> writes:
>
>> Let me walk you through the issue:
>>
>> #+begin_src sh
>> printf 'a\nb\nc\n>d\n<e\n'
>> #+end_src
>>
>> #+RESULTS:
>> : a
>> : b
>> : c
>> : >d
>> : <e
>>
>> Results look as expected. So far so good.
>>
>> Now create a shell buffer (which will be named "*shell*")
>>
>> #+begin_src elisp
>> (shell)
>> #+end_src
>>
>> and try it again
>>
>> #+begin_src sh
>> printf 'a\nb\nc\n>d\n<e\n'
>> #+end_src
>>
>> #+RESULTS:
>> : a
>> : b
>> : c
>> : d
>> : <e
>>
>> Huh? what happened to the ">" before the "d"?
>
>I cannot reproduce.
>May it be that you are setting global :session header argument?
Yes, of course, so sorry, there is
#+PROPERTY: header-args:sh :session *shell* :results output
You should now be able to reproduce.
Thanks, please let me know if you have a fix, workaround, or lesson for me.
~Malcolm
- org-babel-execute-src-block filters characters from :session *shell* output, Cook, Malcolm, 2024/06/13
- Re: org-babel-execute-src-block filters characters from :session *shell* output, Ihor Radchenko, 2024/06/14
- RE: org-babel-execute-src-block filters characters from :session *shell* output,
Cook, Malcolm <=
- RE: org-babel-execute-src-block filters characters from :session *shell* output, Cook, Malcolm, 2024/06/17
- RE: org-babel-execute-src-block filters characters from :session *shell* output, Ihor Radchenko, 2024/06/17
- RE: org-babel-execute-src-block filters characters from :session *shell* output, Cook, Malcolm, 2024/06/17
- RE: org-babel-execute-src-block filters characters from :session *shell* output, Cook, Malcolm, 2024/06/17
- RE: org-babel-execute-src-block filters characters from :session *shell* output, Ihor Radchenko, 2024/06/19
- RE: org-babel-execute-src-block filters characters from :session *shell* output, Ihor Radchenko, 2024/06/30