emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] ob-shell, output and continuation prompts


From: Michael Welle
Subject: [O] ob-shell, output and continuation prompts
Date: Tue, 28 Nov 2017 13:23:52 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3.50 (gnu/linux)

Hello,

this code block:

#+BEGIN_SRC shell :session n42 :shebang "#!/bin/bash"
for i in "aa" "bb" "cc" ; do
echo "u: $i"
done
#+end_src

produces this output when it first runs:

#+RESULTS:
|    |    |    |    |
| >  | >  | u: | aa |
| u: | bb |    |    |
| u: | cc |    |    |


After the first run, subsequent runs produce this output:

#+RESULTS:
|    |    |    |
| >  | u: | aa |
| u: | bb |    |
| u: | cc |    |

If I set :session to none the output is always like follows:

#+RESULTS:
| u: | aa |
| u: | bb |
| u: | cc |


I think that last one is what one would expect ;). Anyways, using sessions,
is there a way to get rid off of the shell's continuation prompts?

Regards
hmw



reply via email to

[Prev in Thread] Current Thread [Next in Thread]