emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Litteral :var passing buggy for shell execution in org-babel when in :session
@ 2016-05-20 14:08 Olivier Berger
  0 siblings, 0 replies; only message in thread
From: Olivier Berger @ 2016-05-20 14:08 UTC (permalink / raw)
  To: emacs-orgmode

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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-20 14:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-20 14:08 Litteral :var passing buggy for shell execution in org-babel when in :session Olivier Berger

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