From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [babel] shell does not unquote Date: Thu, 06 Feb 2014 13:12:47 -0700 Message-ID: <87ob2kc4fa.fsf@gmail.com> References: <87bnylcaje.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBWba-0001Jh-Se for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 16:35:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBWbV-000580-Fz for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 16:35:30 -0500 Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]:43452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBWbV-00057s-8u for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 16:35:25 -0500 Received: by mail-pa0-f49.google.com with SMTP id hz1so2236431pad.36 for ; Thu, 06 Feb 2014 13:35:23 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Samuel Wales Cc: emacs-orgmode@gnu.org, Eric Schulte Samuel Wales writes: > hi eric, > > say you want to list 2 files: "1 space" and "nospace". > > #+call: list(how="\"1 space\" nospace") > > #+name: list > #+BEGIN_SRC sh :noweb yes :results verbatim output > { > # this fails > # ls $how > # this would work, if there were a call option to support it > # ls <> > } 2>&1 > : > #+END_SRC > > is there? You can't mix noweb and variable calling. You could pass the files in using either of the following techniques. #+name: files-tab | with space | | nospace | #+name: files-ex : with space : nospace #+name: list #+begin_src sh :var files="" :results verbatim IFS=" " for file in $files;do echo "-|$file|-" done #+end_src #+call: list(files-tab) #+RESULTS: : -|with space|- : -|nospace|- #+call: list(files-ex) #+RESULTS: : -|with space|- : -|nospace|- -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D