From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uODFNy1Wk2CQRQAAgWs5BA (envelope-from ) for ; Thu, 06 May 2021 04:36:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mNNqMy1Wk2CQAQAAB5/wlQ (envelope-from ) for ; Thu, 06 May 2021 02:36:29 +0000 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 164DD1A7D0 for ; Thu, 6 May 2021 04:36:29 +0200 (CEST) Received: from localhost ([::1]:35212 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leTsJ-00028E-4O for larch@yhetil.org; Wed, 05 May 2021 22:36:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leTrj-000283-FU for emacs-orgmode@gnu.org; Wed, 05 May 2021 22:35:51 -0400 Received: from mail-ua1-x931.google.com ([2607:f8b0:4864:20::931]:38863) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1leTre-0006VF-S4 for emacs-orgmode@gnu.org; Wed, 05 May 2021 22:35:51 -0400 Received: by mail-ua1-x931.google.com with SMTP id i5so1244000uap.5 for ; Wed, 05 May 2021 19:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nWp5K5pFT9ql9zkBDnNr794Xj3kL9pxgHTQINWzcUT4=; b=BXQys4GDfUdrrhAlkYtZNVSpL2xEnnn30m4LdceAlfToYCghHKkKqbjTI0Rmb3KeB3 q/4N6n50gRwHf8DcY6qDzI4n/BS/QdKIUKs2mJ7spOsiAS29rvbbtgR2jEncgaOFBpnJ 7ZsKPxy6li1iec8Zl7G2Je+Y54ALbzLz7ihoSDAVoNiOHzKEo6GwWSv9IW8zEWTo0uuY r49U2dyhYkKwnXPkvvmJrWEkoxNffxhcjSLY2xypjytnnnj/DfaN0czaf7gNubZDB+II idGDBVr+NiSdUkvbQOgB1KZWOhpbSXhjihP60VM5buqzB+w2R6wXnF26h7dKAyL7vzGq eiAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nWp5K5pFT9ql9zkBDnNr794Xj3kL9pxgHTQINWzcUT4=; b=cwUgL9ywh5GNhRgQwNWsCgY43eJx805YeRTZfyh5c7IEjm/GeoU9AHvn26MwfXXlwx Ek2jletcoTYeUMw6WdLrE12zKRcAbss5VfDc5rr1dKOQvl+fPRW4LnN8TtR+AqFohTQX 7u9Pcs9D1/7VWLoQfHaOyvRphBjxO8d16fn1vrlgDzAbkqgQfCPPj3u84bSSMucsSfNZ sbkurIglMpzbr/hK0E0auw8F2XXs100Psdr1Jxg7NEthYksGBX7kJl19aC2IyHqdRx7q SLoiVFohFjCl9QBAw5MdtpsiVujiGOCHH5s5MvTHTzXM8I2Ckxe7naqgzdoyLuIWRySZ uv1g== X-Gm-Message-State: AOAM532UA2zT01tTesdGi7YIh0EvKH/Mvdy15ICyE5FozeOY6yinFGEC opWmVXTUBkt/kvOu0cFDb8KK/BMiJX8Stjpbxg/vATtvrM8= X-Google-Smtp-Source: ABdhPJxXrP2yAUJ4IMf9j8VnBAWuVUQss4GdNWDq3ntWkpJ7GtSP+d3Mn8BC9u0xMUE4pTNqLG257ENBf8F2+RF3va4= X-Received: by 2002:ab0:7c76:: with SMTP id h22mr1770402uax.34.1620268544298; Wed, 05 May 2021 19:35:44 -0700 (PDT) MIME-Version: 1.0 References: <87h7jhus7k.fsf@spx.local.example> In-Reply-To: <87h7jhus7k.fsf@spx.local.example> From: John Corless Date: Wed, 5 May 2021 21:35:33 -0500 Message-ID: Subject: Re: babel output seems to drop anything before % (in session) To: Daniele Pizzolli Content-Type: multipart/alternative; boundary="0000000000000614af05c1a02b91" Received-SPF: pass client-ip=2607:f8b0:4864:20::931; envelope-from=jdcorless@gmail.com; helo=mail-ua1-x931.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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Emacs Org mode mailing list Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620268589; 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=nWp5K5pFT9ql9zkBDnNr794Xj3kL9pxgHTQINWzcUT4=; b=mICwVnFcwHtki48HxJVl95n11IndwOmvuYu8YGKDMbEqt4M3lvYrKgexylm3d6NTEAYqjx Lnc3TpBaB7zR3YgA2Q8uJKV1/Wq8vv9vVG+k6NHmjdP/o0iCN9fLFcfwW62/Eydy/8vZjB JrW11WaFEmPgA/JigkdqDqdK64XlRaPrFGXA0uP2+F43bUdBamW3nhtVMi00R2fZbB/PB4 CpYm/IdWRRsVlSDVcSY8uqXZFiZHbA0pO9R/AylBfxAbN+7TEFfXQxmfdMFqv65QCNxXmI /TVDKLYFdTbwP//EHqGc1hhmvDp6S5dRL6M0ySlFrywgA1p9DUwFTT09SYVkdg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620268589; a=rsa-sha256; cv=none; b=UwU+uDqoYDiZhNaSqrB6dRklOUwKY6PpseVhbhnPjz5vszeJu6AOv/9uUqMNds7LRlQoqs 9OsBIQ0ABT4SWbQQN6J1jatCSqc0h0Rny3rnuBfnLeVf88v6DEb80g92qWopiBDOi7yAJx OBQ7dtceplSt/EXmhb2O/V/FAfCbMksGiMdvjdUGw72D3Qj52RxORtOcpvQAa0A3MGYHMw ux0oMau1OqmZQ4wa6o1Kh1Nz7Smer7UQlZCaRdcRk4JQp8DGY2KMjNR+zwilkxVfy8EzMk 6fpUYVm/hitSBdwdv4CHkTBTCwOJnOEA4q35dELiZnoS8IKP286B3oCDyaaQtg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=BXQys4GD; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.66 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=BXQys4GD; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 164DD1A7D0 X-Spam-Score: -1.66 X-Migadu-Scanner: scn0.migadu.com X-TUID: QayNg67ThnCL --0000000000000614af05c1a02b91 Content-Type: text/plain; charset="UTF-8" Confirmed Daniele, I was able to reproduce the behavior you described. Using the test case... #+BEGIN_SRC shell script :results output ping -c 1 127.0.0.1 #+END_SRC ... the results output matches what I get in a bash shell. But if you add the :session to the header args like this... #+BEGIN_SRC shell script :results output :session test ping -c 1 127.0.0.1 #+END_SRC ... the output line that includes "0% packet loss" gets truncated to after the "%" sign. I tested with 9.4.5. John On Wed, May 5, 2021 at 10:19 AM Daniele Pizzolli wrote: > > Hello, > > Try to execute a few times the following and see the output corrupted in > the line: > > #+BEGIN_EXAMPLE > 1 packets transmitted, 1 received, 0% packet loss, time 0ms > #+END_EXAMPLE > > #+PROPERTY: header-args:shell > #+PROPERTY: header-args:shell+ :results output verbatim :wrap src text > :session test > > #+NAME: ping > #+BEGIN_SRC shell > ping -c 1 127.0.0.1 > #+END_SRC > > I tried to write a test (now with the :expected-result :failed), that > hit the problem both in main and master (applies fine to both). > > I was not able to fix it, but hopefully the tests are still useful for > somebody more knowledgeable! > > Thanks for you suggestion/fix! > > Best, > Daniele > > --0000000000000614af05c1a02b91 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Confirmed

Daniele,

I was able to reproduce the behavior you described.=C2=A0 Usin= g the test case...

#+BEGIN_SRC shell script :results output
ping -c 1 127.0.0.1
#+= END_SRC
<= br>
... t= he results output matches what I get in a bash shell.=C2=A0 But if you add = the :session to the header args like this...

#+BEGIN_SRC sh= ell script :results output :session test
ping -c 1 127.0.0.1
#+END_SR= C

... the output line that includes "0% packet loss&q= uot; gets truncated to after the "%" sign.

I tested with 9.4.5.

John


=
On Wed, Ma= y 5, 2021 at 10:19 AM Daniele Pizzolli <d= an@toel.it> wrote:

Hello,

Try to execute a few times the following and see the output corrupted in the line:

#+BEGIN_EXAMPLE
1 packets transmitted, 1 received, 0% packet loss, time 0ms
#+END_EXAMPLE

#+PROPERTY: header-args:shell
#+PROPERTY: header-args:shell+ :results output verbatim :wrap src text :ses= sion test

#+NAME: ping
#+BEGIN_SRC shell
ping -c 1 127.0.0.1
#+END_SRC

I tried to write a test (now with the :expected-result :failed), that
hit the problem both in main and master (applies fine to both).

I was not able to fix it, but hopefully the tests are still useful for
somebody more knowledgeable!

Thanks for you suggestion/fix!

Best,
Daniele

--0000000000000614af05c1a02b91--