From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Jerram Subject: Re: ob-scheme doesn't support :stdin? Date: Tue, 21 Jan 2020 14:39:08 +0000 Message-ID: References: <87ftgdnypx.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000882599059ca75fd0" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47368) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itugc-0006lk-Su for emacs-orgmode@gnu.org; Tue, 21 Jan 2020 09:39:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itugb-0006fP-HI for emacs-orgmode@gnu.org; Tue, 21 Jan 2020 09:39:22 -0500 Received: from mail-qt1-x82e.google.com ([2607:f8b0:4864:20::82e]:42399) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1itugb-0006bp-CD for emacs-orgmode@gnu.org; Tue, 21 Jan 2020 09:39:21 -0500 Received: by mail-qt1-x82e.google.com with SMTP id j5so2735136qtq.9 for ; Tue, 21 Jan 2020 06:39:20 -0800 (PST) In-Reply-To: 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: Vladimir Nikishkin Cc: Org Mode List --000000000000882599059ca75fd0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I have been thinking for a while that it would be great to have some kind of test system for Babel language implementations. It seems there are lots of possible Babel features, that some languages support and others don't, and it would be good to have more clarity about that situation. Is there already any testing or support matrix along these lines? Best wishes, Neil On Tue, 21 Jan 2020 at 04:07, Vladimir Nikishkin wrote: > I just thought that practically speaking, I no interpreter should > really need stdin, right? > Since everything that is prepended with a shebang: #! interpreter > is at the same time a valid shell script, isn't it? > > =D1=81=D0=B1, 18 =D1=8F=D0=BD=D0=B2. 2020 =D0=B3. =D0=B2 13:02, Kyle Meye= r : > > > > Vladimir Nikishkin writes: > > > > > Is it true that ob-scheme doesn't support :stdin ? > > > > > > I just tried, and doesn't seem to work, although it works with > ob-shell. > > > > > > (This is not a complaint, I just would like to confirm that I > > > understand things correctly.) > > > > Yes, that's true as far as I can tell: > > > > $ git grep :stdin > > lisp/ob-awk.el:;; - :stdin takes an Org data or code block reference, > the value of > > lisp/ob-awk.el: (stdin (let ((stdin (cdr (assq :stdin params)))) > > lisp/ob-sed.el: (stdin (let ((stdin (cdr (assq :stdin params)))) > > lisp/ob-shell.el: (stdin (let ((stdin (cdr (assq :stdin > params)))) > > testing/examples/ob-awk-test.org:#+begin_src awk :stdin genseq > :results silent > > testing/examples/ob-sed-test.org: #+BEGIN_SRC sed :stdin ex1 > > > > So it seems support for :stdin is limited to awk, sed, and shell. > > > > -- > Yours sincerely, Vladimir Nikishkin > > --000000000000882599059ca75fd0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have been thinking for a while that it would be great to= have some kind of test system for Babel language implementations.=C2=A0 It= seems there are lots of possible Babel features, that some languages suppo= rt and others don't, and it would be good to have more clarity about th= at situation.

Is there already any testing or support ma= trix along these lines?

Best wishes,
=C2= =A0 =C2=A0 Neil


On Tue, 21 Jan 2020 at 04:07, Vladimir = Nikishkin <lockywolf@gmail.com> wrote:
I j= ust thought that practically speaking, I no interpreter should
really need stdin, right?
Since everything that is prepended with a shebang: #! interpreter
is at the same time a valid shell script, isn't it?

=D1=81=D0=B1, 18 =D1=8F=D0=BD=D0=B2. 2020 =D0=B3. =D0=B2 13:02, Kyle Meyer = <
kyle@kyleam.com>:
>
> Vladimir Nikishkin <
lockywolf@gmail.com> writes:
>
> > Is it true that ob-scheme doesn't support :stdin <blocknam= e>?
> >
> > I just tried, and doesn't seem to work, although it works wit= h ob-shell.
> >
> > (This is not a complaint, I just would like to confirm that I
> > understand things correctly.)
>
> Yes, that's true as far as I can tell:
>
>=C2=A0 =C2=A0$ git grep :stdin
>=C2=A0 =C2=A0lisp/ob-awk.el:;; - :stdin takes an Org data or code block= reference, the value of
>=C2=A0 =C2=A0lisp/ob-awk.el:=C2=A0 (stdin (let ((stdin (cdr (assq :stdi= n params))))
>=C2=A0 =C2=A0lisp/ob-sed.el:=C2=A0 (stdin (let ((stdin (cdr (assq :stdi= n params))))
>=C2=A0 =C2=A0lisp/ob-shell.el:=C2=A0 =C2=A0 =C2=A0 =C2=A0 (stdin (let (= (stdin (cdr (assq :stdin params))))
>=C2=A0 =C2=A0testing/examples/ob-awk-test.org:#+begin_src awk=C2=A0 :st= din genseq :results silent
>=C2=A0 =C2=A0testing/examples/ob-sed-test.org:=C2=A0 #+BEGIN_SRC sed := stdin ex1
>
> So it seems support for :stdin is limited to awk, sed, and shell.



--
Yours sincerely, Vladimir Nikishkin

--000000000000882599059ca75fd0--