From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: Bug: Cannot tangle bash source blocks [9.0 (release_9.0-237-gccf2b9 @ /usr/local/share/emacs/site-lisp/org/)] Date: Mon, 02 Jan 2017 13:03:36 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOCnQ-0000N3-Be for emacs-orgmode@gnu.org; Mon, 02 Jan 2017 19:17:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOCnM-0005hP-Ca for emacs-orgmode@gnu.org; Mon, 02 Jan 2017 19:17:44 -0500 Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:54407) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1cOCnM-0005hD-2r for emacs-orgmode@gnu.org; Mon, 02 Jan 2017 19:17:40 -0500 In-reply-to: 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: David Dynerman Cc: emacs-orgmode@gnu.org Aloha David, David Dynerman writes: > I cannot tangle a bash source block (via ob-shell) that contains > variables. To reproduce, enter this into an org file: > > #+BEGIN_SRC bash :var HELLO="world" :tangle > echo $HELLO > #+END_SRC > > Then C-c C-v t RET > > This error is reported: > > org-babel-tangle-single-block: Wrong number of arguments: (2 . 4) The :tangle keyword requires an argument, one of 'yes', 'no', or a path. But I think your error message (which I can reproduce) is due to using 'bash' instead of 'shell' for the language of the source code block. This works for me: #+BEGIN_SRC shell :var HELLO="world" :tangle bash.sh echo $HELLO #+END_SRC hth, Tom -- Thomas S. Dye http://www.tsdye.com