From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +L8TEVDzz2QT8wAASxT56A (envelope-from ) for ; Sun, 06 Aug 2023 21:24:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id mBsxEVDzz2T0UgEAauVa8A (envelope-from ) for ; Sun, 06 Aug 2023 21:24:00 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D3C9F32592 for ; Sun, 6 Aug 2023 21:23:59 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=pzuUYpkl; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691349840; a=rsa-sha256; cv=none; b=SIA0XXu915bAKff/rl5/0ewcJvsbLaApKUixYHSsiV0Zx7cZ4/4bUPt1Sg+gGyjtqWEx1r ksKRSuJn2L3uBZ1aoIb7isdApC+XvcboWwp4lm3LvX4Ouof41BYo7FGDAz9g7XC76U3lEi DrHnb1crjqx1NI0UOFLQ210wGyjXAMPKkjGqeFdqbWDK1G/VHsC3WgPfnPktkCa2Rt/oAC 44LVezaaBnUHTUZlKp7HKq//vEGTD0EuC+BPMBSliGuGdLvibHYJzY2DtrqrlPjkbR3xiB 9gQPfa6v0zGPzbWLjSoGRm3oTE1rWBOQ7fAwo+UpKSXoL202eH5cGIkFCSetnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691349840; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=chKzGELx35H2gHrCF/G4HLmKI1smTFPLPvodfIjO4hA=; b=KPOJIC0dUlhMmdT/maPQ2h/+h97viVbSAu5Md3+6rHhZm1mIR+or8U7V8N4lg/P1o+H86V krkASNwdd+DMU41ASPJgrrWD0Kkwj81v+5iqc7NpV1Um30iCNd6heHWb7bqS3AKE+9FhNV TwBCebLSN4Yyw549SQRNmsTLLI20GI41FZl+x/zfnaehFIxNAMp3Q+5h0tij33OypbQZFH LISlYLLvsSHLyu53A/qRuYz1DcgS0ujvPCCh/CrijhaDySrq2B5zDW4uW2Uq71iuaOTiwV nsiGrV/it4NR28l1i7aiJrkdYEQ1kYzwaR67ncibOroeAq7Umtz33+RKLyJrcg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=pzuUYpkl; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSjL1-0000tB-Sr; Sun, 06 Aug 2023 15:22:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSjL0-0000sj-Ib for emacs-orgmode@gnu.org; Sun, 06 Aug 2023 15:22:50 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qSjKz-00018u-0y for emacs-orgmode@gnu.org; Sun, 06 Aug 2023 15:22:50 -0400 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-31759e6a4a1so2767073f8f.3 for ; Sun, 06 Aug 2023 12:22:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691349767; x=1691954567; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=chKzGELx35H2gHrCF/G4HLmKI1smTFPLPvodfIjO4hA=; b=pzuUYpklr3JB+afLnXJmxsqHmX+R5zIiuLLiDMeaO74ugnOZ9zezJyzd9LIly56Uyp AQQMIfzMLH4MLLVww64sA74UD5wETU//+CekwnwGWlE5LiZAsMyW2KXkLOm4eM68Htpp 3p1oadrTZagGCuJtBvJQoFbtb9HzjqeE2wUAdfmrKBeDhnzbpUA7iKHCdp4ny9GEMklt UcNxaY1I9B8E8AReqppnimc0t14EVH5W6GspamxkPgx/ZYBmdDmBZV6x4+VJyMiNHfZF EcGyV3QyM4uPUZWVTWUaT57vBHccWNP4bkWA1Csl3TCwMX+mR7WLPMMP4QSdGm4z8rZn MKwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691349767; x=1691954567; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=chKzGELx35H2gHrCF/G4HLmKI1smTFPLPvodfIjO4hA=; b=dnDHFwM1zF8MzgxDGNren2gbS9t/vZjNqN59tXRMSBhPS0qMMksWcBv6sKOLKSNXZ1 Ro1p//nYsnVPfPBT5dLAAocz+wokr75QCLbUfEmShnQIm4FsMjS86Z7BSpaLpc02xmgz 3WZ6UoeoQb4rZRj40AuftlzAeKfBxqSqxXIQvLLrSPP2rUwd+2oi3ykSulnjGGTlwNXi JPk6tccJuY7ZfYhHouU1SZOkp4+wA/pXxONx/dbkbAtKWgmXpBDNqSpyZemgqINqEXNr GR/ktr07K9bRXfBdzY7kC8P8zHDff2lfs+EnJ8neUj+gfo4sZnvMu1UWiOetRc3+tBEM iayA== X-Gm-Message-State: AOJu0YxSfxpvPU/neABypRIP5av3rIQNpp1jigUdC/u4v1K/G8QXt48n zlAEUJAzyUagZqzua3+wZx+MYx/IkF6+dRG4sVKBaznC0yd22A== X-Google-Smtp-Source: AGHT+IHIq4FJVsN+DjA5rSDuYUuafSEppbVa8GaVeA9Iui9BGcPRUeAzApBOdfC5CuAXNX3kE1y2fCqIhjLm+ggHdFc= X-Received: by 2002:adf:ee4f:0:b0:314:4437:beab with SMTP id w15-20020adfee4f000000b003144437beabmr4602943wro.55.1691349767257; Sun, 06 Aug 2023 12:22:47 -0700 (PDT) MIME-Version: 1.0 References: <87jzu8ro2m.fsf@localhost> In-Reply-To: <87jzu8ro2m.fsf@localhost> From: =?UTF-8?Q?S=C5=82awomir_Grochowski?= Date: Sun, 6 Aug 2023 21:22:36 +0200 Message-ID: Subject: Re: [BUG?] org-babel eval src block with :dir parameter To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000001183840602460eb2" Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=slawomir.grochowski@gmail.com; helo=mail-wr1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.05 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: D3C9F32592 X-Spam-Score: -9.05 X-TUID: yQepx17lELOy --0000000000001183840602460eb2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=E2=80=AFPM Ihor Radchenko = wrote: > S=C5=82awomir Grochowski 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 . > Support Org development at , > or support my work at > --0000000000001183840602460eb2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes I just simplified the example. The case is if I add :d= ir param it result will be wrapped=C2=A0it=C2=A0#+begin_example #+end_example block.

On Sun, Aug 6, 2023 = at 9:02=E2=80=AFPM Ihor Radchenko <yantar92@posteo.net> wrote:
S=C5=82awomir 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<= br> > #+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>
--0000000000001183840602460eb2--