From: Olivier Berger <olivier.berger@telecom-sudparis.eu>
To: emacs-orgmode@gnu.org
Subject: Litteral :var passing buggy for shell execution in org-babel when in :session
Date: Fri, 20 May 2016 16:08:47 +0200 [thread overview]
Message-ID: <87iny83jps.fsf@inf-11879.int-evry.fr> (raw)
Hi.
I'm trying to apply the approach of litteral devops described in
http://www.howardism.org/Technical/Emacs/literate-devops.html and
noticed the following issue.
I'm trying to use execute shell blocks of the following form ("remote" execution of
commands inside a Vagrant VM via tramp through ssh, using a shell mode session) :
#+BEGIN_SRC sh :dir /symfonyvm:/vagrant :var SYNCEDDIR="/vagrant" :results drawer :session centosvm
ls $SYNCEDDIR
#+END_SRC
This works well when not using a session, but when using the session,
the variable evaluation gets stuck, and when interrupted, I can see the
following inside the "centosvm" shell buffer :
/scp:symfonyvm: #$ SYNCEDDIR=$(cat <<'BABEL_TABLE'
The substitution doesn't seem to happen well over tramp in that case,
somehow.
Typing C-c C-d in the shell session allows me to recover.
I suspect an issue related to tramp + session, incompatible with the
variable initialisation mechanism.
Any clue ?
My setup should be org-mode version : 8.3.4 and normally, ob-sh.el
supposedly stock emacs in Debian testing context...
Thanks in advance.
Best regards,
--
Olivier BERGER
http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
Ingenieur Recherche - Dept INF
Institut Mines-Telecom, Telecom SudParis, Evry (France)
reply other threads:[~2016-05-20 14:09 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=87iny83jps.fsf@inf-11879.int-evry.fr \
--to=olivier.berger@telecom-sudparis.eu \
--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).