From: Daniel Gerber <daniel.g.gerber@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [BUG] List argument to a shell code block
Date: Mon, 15 Jul 2013 11:02:21 +0200 [thread overview]
Message-ID: <51E3BA9D.1040002@gmail.com> (raw)
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).
next reply other threads:[~2013-07-15 9:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-15 9:02 Daniel Gerber [this message]
2013-07-17 14:16 ` [BUG] List argument to a shell code block Eric Schulte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51E3BA9D.1040002@gmail.com \
--to=daniel.g.gerber@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).