From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olivier Berger Subject: Litteral :var passing buggy for shell execution in org-babel when in :session Date: Fri, 20 May 2016 16:08:47 +0200 Message-ID: <87iny83jps.fsf@inf-11879.int-evry.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3l7C-0008Hd-Mj for emacs-orgmode@gnu.org; Fri, 20 May 2016 10:09:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b3l79-0003ZA-ET for emacs-orgmode@gnu.org; Fri, 20 May 2016 10:09:22 -0400 Received: from plane.gmane.org ([80.91.229.3]:59671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3l79-0003Z3-7G for emacs-orgmode@gnu.org; Fri, 20 May 2016 10:09:19 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b3l6s-0001Xb-Cc for emacs-orgmode@gnu.org; Fri, 20 May 2016 16:09:02 +0200 Received: from inf-11879.int-evry.fr ([157.159.110.251]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 May 2016 16:09:02 +0200 Received: from olivier.berger by inf-11879.int-evry.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 May 2016 16:09:02 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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)