From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [BUG] List argument to a shell code block Date: Wed, 17 Jul 2013 08:16:03 -0600 Message-ID: <87k3kpl1b0.fsf@gmail.com> References: <51E3BA9D.1040002@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzSYR-00016P-Ji for emacs-orgmode@gnu.org; Wed, 17 Jul 2013 10:18:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzSYP-00076F-UI for emacs-orgmode@gnu.org; Wed, 17 Jul 2013 10:18:07 -0400 Received: from mail-pd0-x236.google.com ([2607:f8b0:400e:c02::236]:35374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzSYP-000761-NM for emacs-orgmode@gnu.org; Wed, 17 Jul 2013 10:18:05 -0400 Received: by mail-pd0-f182.google.com with SMTP id r10so1885103pdi.13 for ; Wed, 17 Jul 2013 07:18:05 -0700 (PDT) In-Reply-To: <51E3BA9D.1040002@gmail.com> (Daniel Gerber's message of "Mon, 15 Jul 2013 11:02:21 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Daniel Gerber Cc: emacs-orgmode@gnu.org Daniel Gerber writes: > 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). > > Hi Daniel, Thanks for reporting this, I've just pushed up a fix. Cheers, -- Eric Schulte http://cs.unm.edu/~eschulte