From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Passing a table to org-babel shell script Date: Sat, 06 Feb 2010 11:33:16 -0700 Message-ID: <87wryqfc3b.fsf@gmail.com> References: <20100124094734.GA10344@cab> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NdpTb-0004p0-Cq for emacs-orgmode@gnu.org; Sat, 06 Feb 2010 13:33:51 -0500 Received: from [199.232.76.173] (port=55161 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NdpTa-0004os-IF for emacs-orgmode@gnu.org; Sat, 06 Feb 2010 13:33:50 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NdpTZ-0001Ce-Mp for emacs-orgmode@gnu.org; Sat, 06 Feb 2010 13:33:50 -0500 Received: from mail-px0-f176.google.com ([209.85.216.176]:34975) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NdpTZ-0001Bv-Af for emacs-orgmode@gnu.org; Sat, 06 Feb 2010 13:33:49 -0500 Received: by pxi6 with SMTP id 6so682936pxi.14 for ; Sat, 06 Feb 2010 10:33:48 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Matthias Teege Cc: emacs-orgmode@gnu.org Hi Matthias, Sorry about the slow reply. This is a good question, I have comments in-line below. Matthias Teege writes: [...] > But if I use more then one column, If got an error: > > #+tblname: sec > | Hello | World | > > #+begin_src sh :var table=sec > cat < $table > EOF > #+end_src > > #+results: > | sh: Zeile 1: World]]: command not found. | > > It looks like, then Shell interprets the seperator "|" as pipe. > > How do I use a multicolumn table as input for a shell script? > This is a good question, clearly the current approach of dumping it in as a string isn't working, however I'm not sure what a good alternative would be. Some ideas that come to mind are... 1) allowing the user to specify a separator with a header argument as follows #+begin_src sh :var table=sec :separator , cat <