emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG?] org-babel eval src block with :dir parameter
@ 2023-08-06 18:56 Sławomir Grochowski
  2023-08-06 19:02 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Sławomir Grochowski @ 2023-08-06 18:56 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 627 bytes --]

Dear All,

I'm surprised by this behaviour.

#+begin_src sh :results replace output
ls
#+end_src

#+RESULTS:
: file1.txt
: file2.txt

Adding :dir parameter changes output RESULTS. It's now wrapped in
#+begin_example #+end_example block.

#+begin_src sh :dir ~/ :results replace output
ls
#+end_src

#+RESULTS:
#+begin_example
file1.txt
file2.txt
#+end_example

Is it a bug?

Org mode version 9.6.7 (9.6.7-gc74c4a @
/home/slk/.emacs.d/straight/build/org/)
GNU Emacs 29.1.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24,
cairo version 1.16.0) of 2023-07-30

Regards,
Sławomir Grochowski

[-- Attachment #2: Type: text/html, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG?] org-babel eval src block with :dir parameter
  2023-08-06 18:56 [BUG?] org-babel eval src block with :dir parameter Sławomir Grochowski
@ 2023-08-06 19:02 ` Ihor Radchenko
  2023-08-06 19:22   ` Sławomir Grochowski
  0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2023-08-06 19:02 UTC (permalink / raw)
  To: Sławomir Grochowski; +Cc: emacs-orgmode

Sławomir Grochowski <slawomir.grochowski@gmail.com> writes:

> I'm surprised by this behaviour.
>
> #+begin_src sh :results replace output
> ls
> #+end_src
>
> #+RESULTS:
> : file1.txt
> : file2.txt
>
> Adding :dir parameter changes output RESULTS. It's now wrapped in
> #+begin_example #+end_example block.

I am pretty sure that your example is not the whole output. The variant
with :dir has many more files, right? If so, check out
`org-babel-min-lines-for-block-output'.

-- 
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?] org-babel eval src block with :dir parameter
  2023-08-06 19:02 ` Ihor Radchenko
@ 2023-08-06 19:22   ` Sławomir Grochowski
  0 siblings, 0 replies; 3+ messages in thread
From: Sławomir Grochowski @ 2023-08-06 19:22 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 992 bytes --]

Yes I just simplified the example. The case is if I add :dir param it
result will be wrapped it #+begin_example #+end_example block.

On Sun, Aug 6, 2023 at 9:02 PM Ihor Radchenko <yantar92@posteo.net> wrote:

> Sławomir Grochowski <slawomir.grochowski@gmail.com> writes:
>
> > I'm surprised by this behaviour.
> >
> > #+begin_src sh :results replace output
> > ls
> > #+end_src
> >
> > #+RESULTS:
> > : file1.txt
> > : file2.txt
> >
> > Adding :dir parameter changes output RESULTS. It's now wrapped in
> > #+begin_example #+end_example block.
>
> I am pretty sure that your example is not the whole output. The variant
> with :dir has many more files, right? If so, check out
> `org-babel-min-lines-for-block-output'.
>
> --
> 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>
>

[-- Attachment #2: Type: text/html, Size: 1726 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-08-06 19:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-06 18:56 [BUG?] org-babel eval src block with :dir parameter Sławomir Grochowski
2023-08-06 19:02 ` Ihor Radchenko
2023-08-06 19:22   ` Sławomir Grochowski

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