From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Gerber Subject: [BUG] List argument to a shell code block Date: Mon, 15 Jul 2013 11:02:21 +0200 Message-ID: <51E3BA9D.1040002@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uyeg5-0001Ip-A0 for emacs-orgmode@gnu.org; Mon, 15 Jul 2013 05:02:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uyefp-0004C9-92 for emacs-orgmode@gnu.org; Mon, 15 Jul 2013 05:02:41 -0400 Received: from mail-ee0-x22f.google.com ([2a00:1450:4013:c00::22f]:48522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uyefp-0004Bn-0J for emacs-orgmode@gnu.org; Mon, 15 Jul 2013 05:02:25 -0400 Received: by mail-ee0-f47.google.com with SMTP id e49so7334597eek.20 for ; Mon, 15 Jul 2013 02:02:24 -0700 (PDT) Received: from [192.168.0.12] (217-162-42-42.dynamic.hispeed.ch. [217.162.42.42]) by mx.google.com with ESMTPSA id a4sm101026207eez.0.2013.07.15.02.02.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Jul 2013 02:02:23 -0700 (PDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello, It seems that passing a list to a shell code-block is broken: #+CALL: echo-sh(arg-list) #+RESULTS: echo-sh(arg-list) | 97 | | 98 | | 99 | | 120 | | 121 | | 122 | #+NAME: arg-list - abc - xyz #+NAME: echo-sh #+BEGIN_SRC sh :var arg=arg-list for a in $arg; do echo "$a" done #+END_SRC Shouldn't it work the same as a table argument? #+CALL: echo-sh(arg-table) #+RESULTS: echo-sh(arg-table) | ABC | | XYZ | #+TBLNAME: arg-table | ABC | | XYZ | This is on Org-mode version 8.0.3 (8.0.3-32-g0c789f-elpa).