emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Daniel Gerber
Subject: [O] [BUG] List argument to a shell code block
Date: Mon, 15 Jul 2013 11:02:21 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7

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).




reply via email to

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