From: Eric Schulte <schulte.eric@gmail.com>
To: Daniel Gerber <daniel.g.gerber@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] List argument to a shell code block
Date: Wed, 17 Jul 2013 08:16:03 -0600 [thread overview]
Message-ID: <87k3kpl1b0.fsf@gmail.com> (raw)
In-Reply-To: <51E3BA9D.1040002@gmail.com> (Daniel Gerber's message of "Mon, 15 Jul 2013 11:02:21 +0200")
Daniel Gerber <daniel.g.gerber@gmail.com> 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
prev parent reply other threads:[~2013-07-17 14:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-15 9:02 [BUG] List argument to a shell code block Daniel Gerber
2013-07-17 14:16 ` Eric Schulte [this message]
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=87k3kpl1b0.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=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).