Dear sirs,

Is it possible to support Unix Standard Input (stdin), Standard Error
(stderr) connectivity to org-babel?

Currently, :stdin is only available to ob-shell.el, as follows.

 #+name: stdin-test
 #+begin_export ascii
 foo
 bar
 foobar
 #+end_export

 #+begin_src shell :stdin stdin-test :results output
 grep foo
 #+end_src

 #+RESULTS:
 : foo
 : foobar


However, not only shell, but most programming languages, especially running
on unix-family OS, have the ability to get input from Standard Input and
output error messages to Standard Error.

I appreciate if org-babel could have the general availability of :stdin &
:stderr header arguments to connect the code block to standard input and
standard output.

I believe that such functionality will certainly make org-babel more
versatile and appropriate for learning programming language with literate
programming.

Sincerely,

cf.
https://emacs.stackexchange.com/questions/84725/how-to-feed-standard-input-text-to-haskell-code-block-in-org-babel-ob-haskell


---------------
tck...@gmail.com

Reply via email to