From: msj <masaj@gmx.com>
To: emacs-orgmode@gnu.org
Subject: Bug: Option :session cripples the Results output by adding ">" sign
Date: Tue, 23 Jan 2018 23:35:37 +0100 [thread overview]
Message-ID: <1516746937.30257.28.camel@gmx.com> (raw)
When I attempt to work with shell source blocks in session mode
(:session argument) I'm receiving in RESULTS block an unwanted sign
(probably line continuation sign) in multi line commands like 'for'
loop.
-----------------------------------------------------------------------
---- How it works at the moment ---
-----------------------------------------------------------------------
#+BEGIN_SRC sh :session test
for i in `seq 1 5`;do
echo $i
echo
done
#+END_SRC
#+RESULTS:
| > | > | > | 1 |
| | | | |
| 2 | | | |
| | | | |
| 3 | | | |
| | | | |
| 4 | | | |
| | | | |
| 5 | | | |
-----------------------------------------------------------------------
--- code evaluation taken from 'test' buffer ---
-----------------------------------------------------------------------
for i in `seq 1 5`;do
$ echo $i
> > echo
> done
1
2
3
4
5
$ echo 'org_babel_sh_eoe'
org_babel_sh_eoe
$
-----------------------------------------------------------------------
--- Expected behavior (for this case adding a sign is omitted by
running the loop in one line mode ---
-----------------------------------------------------------------------
#+BEGIN_SRC bash :session test7
for i in $(seq 1 5);do echo "hello"; done
#+END_SRC
#+RESULTS:
| hello |
| hello |
| hello |
| hello |
| hello |
Some further troubleshooting revealed that by exporting PS2 to an empty
string this behavior can be temporarily suppressed.
Regards,
Peter
Emacs : GNU Emacs 25.3.1 (x86_64-unknown-linux-gnu, GTK+ Version
3.22.26)
of 2017-12-16
Package: Org mode version 9.1.6 (9.1.6-16-g86a382-elpaplus @
/home/cqs/.emacs.d/elpa/org-plus-contrib-20180115/)
reply other threads:[~2018-01-23 22: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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1516746937.30257.28.camel@gmx.com \
--to=masaj@gmx.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.