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 19:13:31 -0700 Message-ID: <87iosrbr1m.fsf@gmail.com> References: <87bnylcaje.fsf@gmail.com> <87ob2kc4fa.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBb7H-0008F1-9F for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 21:24:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WBb7C-00046t-2q for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 21:24:31 -0500 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]:42559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WBb7B-00046l-Sd for emacs-orgmode@gnu.org; Thu, 06 Feb 2014 21:24:26 -0500 Received: by mail-pa0-f48.google.com with SMTP id kx10so2535711pab.21 for ; Thu, 06 Feb 2014 18:24:24 -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 Samuel Wales writes: > thanks for the examples, but they don't meet my needs as tables for > each set of arguments would be too unwieldy. > How about this. #+name: list #+begin_src sh :var files="" :results verbatim IFS=" " for file in $files;do echo "-|$file|-" done #+end_src #+call: list("1 space\nnospace") #+RESULTS: : -|1 space|- : -|nospace|- > > what would be ideal is to allow setting noweb expansions in the call > line (instead of requiring named blocks to provide the expansion). > i.e. it is similar to setting a var, but is a noweb setting instead. > > then i would just do the call with the files i want, quoted the way i want. > > may i make this a feature request? > I'm not sure that the additional utility justifies the added complexity. Best, > > > On 2/6/14, Eric Schulte wrote: >> #+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