From: Luka Stanisic <luka.stanisic@imag.fr>
To: emacs-orgmode@gnu.org, bzg@gnu.org
Cc: Arnaud Legrand <arnaud.legrand@imag.fr>
Subject: [babel] Shell session output problem
Date: Thu, 31 Jul 2014 16:21:38 +0200 [thread overview]
Message-ID: <53DA50F2.4010206@imag.fr> (raw)
Hello,
When running org-babel shell snippets in *session*, I stumbled upon
the following problem:
Output shown in my .org file is already formatted:
1. Starting white spaces are lost
2. All code before first ">", "$" or "#" (prompt related?) is lost
Here is a minimal example (run it twice, first time when opening a
new session it is working)
#+begin_src sh :results output :session org-sh-test
echo " too$ foo"
echo " too$ foo"
#+end_src
#+RESULTS:
:
: foo
: too$ foo
Is there a way or some org-babel options to avoid this behavior?
I see how this formatting can be beneficial in many cases, but this
doesn't apply for mine.
Best regards,
Luka
reply other threads:[~2014-07-31 14:36 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=53DA50F2.4010206@imag.fr \
--to=luka.stanisic@imag.fr \
--cc=arnaud.legrand@imag.fr \
--cc=bzg@gnu.org \
--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).