[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Litteral :var passing buggy for shell execution in org-babel when in
From: |
Olivier Berger |
Subject: |
[O] Litteral :var passing buggy for shell execution in org-babel when in :session |
Date: |
Fri, 20 May 2016 16:08:47 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] Litteral :var passing buggy for shell execution in org-babel when in :session,
Olivier Berger <=