* [BUG] ob-shell :stdin is broken on the main branch @ 2022-11-03 16:17 Max Nikulin 2022-11-04 2:42 ` Ihor Radchenko 0 siblings, 1 reply; 3+ messages in thread From: Max Nikulin @ 2022-11-03 16:17 UTC (permalink / raw) To: emacs-orgmode Try the following source code blocks: #+begin_src elisp (require 'ob-shell) #+end_src #+name: lbl #+begin_example line 1 line 2 #+end_example #+begin_src bash :stdin lbl cat #+end_src Second one signals "Wrong number of arguments" at least in Emacs-26 with Org main HEAD. Org bugfix branch works and yields #+RESULTS: | line | 1 | | line | 2 | I was going to suggest #+begin_src bash :stdin lbl while read -r -a arr ; do echo "${arr[0]}" done #+end_src https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-shell.html in response to Greg Minshall. processing a literal example line by line in a shell source block? Wed, 02 Nov 2022 11:17:25 -0700. https://list.orgmode.org/122789.1667413045@archlinux ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] ob-shell :stdin is broken on the main branch 2022-11-03 16:17 [BUG] ob-shell :stdin is broken on the main branch Max Nikulin @ 2022-11-04 2:42 ` Ihor Radchenko 2022-11-04 3:28 ` Max Nikulin 0 siblings, 1 reply; 3+ messages in thread From: Ihor Radchenko @ 2022-11-04 2:42 UTC (permalink / raw) To: Max Nikulin; +Cc: emacs-orgmode Max Nikulin <manikulin@gmail.com> writes: > Try the following source code blocks: > > #+begin_src elisp > (require 'ob-shell) > #+end_src > > #+name: lbl > #+begin_example > line 1 > line 2 > #+end_example > > #+begin_src bash :stdin lbl > cat > #+end_src > > Second one signals "Wrong number of arguments" at least in Emacs-26 with > Org main HEAD. This is only on Emacs 26. Fixed on main now. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=2924c778482a2e62e3bc906fbd3ecd18beb1d11f -- Ihor Radchenko // yantar92, Org mode contributor, 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> ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] ob-shell :stdin is broken on the main branch 2022-11-04 2:42 ` Ihor Radchenko @ 2022-11-04 3:28 ` Max Nikulin 0 siblings, 0 replies; 3+ messages in thread From: Max Nikulin @ 2022-11-04 3:28 UTC (permalink / raw) To: emacs-orgmode On 04/11/2022 09:42, Ihor Radchenko wrote: > Max Nikulin writes: > >> #+name: lbl >> #+begin_example >> line 1 >> line 2 >> #+end_example >> >> #+begin_src bash :stdin lbl >> cat >> #+end_src >> >> Second one signals "Wrong number of arguments" at least in Emacs-26 with >> Org main HEAD. > > This is only on Emacs 26. > > Fixed on main now. Thank you, I do not get that error full of trash characters any more. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-11-04 3:29 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-11-03 16:17 [BUG] ob-shell :stdin is broken on the main branch Max Nikulin 2022-11-04 2:42 ` Ihor Radchenko 2022-11-04 3:28 ` Max Nikulin
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).