emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [BUG] List argument to a shell code block


From: Eric Schulte
Subject: Re: [O] [BUG] List argument to a shell code block
Date: Wed, 17 Jul 2013 08:16:03 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Daniel Gerber <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]