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 13:00:40 -0400 Message-ID: <87d2ekslhj.fsf@gmail.com> References: <6157.1401905539@greg-minshalls-mbp.local> <871tv2ezaf.fsf@gmail.com> <874mzxt3gl.fsf@Rainer.invalid> <87egz0d9dy.fsf@gmail.com> <87zjhosn9b.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtJzZ-0006AW-3B for emacs-orgmode@gnu.org; Sat, 07 Jun 2014 13:01:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WtJzU-0004Vx-T5 for emacs-orgmode@gnu.org; Sat, 07 Jun 2014 13:01:17 -0400 Received: from mail-qg0-x231.google.com ([2607:f8b0:400d:c04::231]:51773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtJzU-0004VO-NV for emacs-orgmode@gnu.org; Sat, 07 Jun 2014 13:01:12 -0400 Received: by mail-qg0-f49.google.com with SMTP id a108so6827683qge.8 for ; Sat, 07 Jun 2014 10:01:12 -0700 (PDT) In-Reply-To: <87zjhosn9b.fsf@Rainer.invalid> (Achim Gratz's message of "Sat, 07 Jun 2014 18:22:24 +0200") 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: Achim Gratz Cc: emacs-orgmode@gnu.org Achim Gratz writes: > Eric Schulte writes: >> I can't reproduce these problems. Could you provide examples, and maybe >> a stack traces? > > The tests have all been done with "make vanilla" and > testing/examples/ob-awk-test.org. The test failure is: > [...] > > I've no idea how to get at the command line. It is clear that awk gets > invoked and even delivers the right result, but somehow it is doing this > differently than before in the case where it uses STDIN. I can't > reproduce with my own awk program on the command line. > Thanks for the additional information. The only thing I can think of is that the ordering of the arguments on the command line is somehow responsible for this error. Here's the command line executed by the ob-awk/input-src-block-1 awk test, $ awk -f /tmp/babel-66681az/awk-6668uW2 where /tmp/babel-66681az/awk-6668uW2 has the following content. ,---- | { | print 42+$1 | } `---- The command is invoked with `call-process-shell-command'. Are these failures only present *after* these recent changes to ob-awk? I can't think of how these changes could be related to this STDIN error. > > The problem with "C-c C-v C-v" happens when invoking it on the > #+BEGIN_SRC line only (which interestingly enough works without error > once you've done it inside the source block first). > I would be surprised if this "C-c C-v C-v" is caused by my recent changes to awk's variable handling. Can you find the offend commit here (or at least check if the problem is new)? Thanks, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D (see https://u.fsf.org/yw)