From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Nikishkin Subject: Re: ob-scheme doesn't support :stdin? Date: Tue, 21 Jan 2020 12:05:47 +0800 Message-ID: References: <87ftgdnypx.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:57455) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itknh-0003ez-Dk for emacs-orgmode@gnu.org; Mon, 20 Jan 2020 23:06:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itkng-0001pf-8j for emacs-orgmode@gnu.org; Mon, 20 Jan 2020 23:06:01 -0500 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:32777) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1itkng-0001p0-0R for emacs-orgmode@gnu.org; Mon, 20 Jan 2020 23:06:00 -0500 Received: by mail-ed1-x530.google.com with SMTP id r21so1664178edq.0 for ; Mon, 20 Jan 2020 20:05:59 -0800 (PST) In-Reply-To: <87ftgdnypx.fsf@kyleam.com> 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: Kyle Meyer Cc: emacs-orgmode@gnu.org 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 Meyer = : > > 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, t= he 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 :result= s 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. --=20 Yours sincerely, Vladimir Nikishkin