emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ob-shell, output and continuation prompts
@ 2017-11-28 12:23 Michael Welle
  2017-11-28 13:00 ` Eric S Fraga
  2018-02-04 19:32 ` Shintaro Katayama
  0 siblings, 2 replies; 5+ messages in thread
From: Michael Welle @ 2017-11-28 12:23 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-02-04 19:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-28 12:23 ob-shell, output and continuation prompts Michael Welle
2017-11-28 13:00 ` Eric S Fraga
2017-11-28 13:06   ` Michael Welle
2017-11-28 13:19     ` Michael Welle
2018-02-04 19:32 ` Shintaro Katayama

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).