Ikki Tachikawa <[email protected]> writes:

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

Yes, but it may not be possible for some babel backends. In particular,
stdin will be tricky for the backends that make use of comint repl
rather than call a shell command directly.

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

Also, in ob-awk and in ob-sed.

> 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.

Maybe. But we will need someone to implement :stdin support for each
compatible babel backend. Patches welcome!

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to