From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: a minor patch to awk invocation Date: Sat, 07 Jun 2014 11:15:26 -0400 Message-ID: <87k38sd9e2.fsf@gmail.com> References: <17458.1402119970@greg-minshalls-mbp.local> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtIaj-0000Hp-Lu for emacs-orgmode@gnu.org; Sat, 07 Jun 2014 11:31:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WtIaf-0007Wf-F3 for emacs-orgmode@gnu.org; Sat, 07 Jun 2014 11:31:33 -0400 Received: from mail-qg0-x236.google.com ([2607:f8b0:400d:c04::236]:34510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtIaf-0007WY-Ay for emacs-orgmode@gnu.org; Sat, 07 Jun 2014 11:31:29 -0400 Received: by mail-qg0-f54.google.com with SMTP id q108so6961386qgd.27 for ; Sat, 07 Jun 2014 08:31:28 -0700 (PDT) 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: Greg Minshall Cc: emacs-orgmode@gnu.org Greg Minshall writes: > though, in the spirit of "no good deed goes unpunished": > ---- > #+name: foo > | a | b | c | > #+begin_src awk :var a=foo > BEGIN{ print a; } > #+end_src > ---- > gives an error (and, ':var a="this is a test"' doesn't behave as one > might expect). i haven't looked at ob-*.el enough to know the patterns > used to wrap up various forms of variables into different languages. Ah, thanks for pointing this out. I just pushed up a simple fix along with a unit test for tabular input to awk blocks. Best, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D (see https://u.fsf.org/yw)