From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EDJMNQHWk2AYNwEAgWs5BA (envelope-from ) for ; Thu, 06 May 2021 13:41:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id wODTMAHWk2CpHgAAbx9fmQ (envelope-from ) for ; Thu, 06 May 2021 11:41:53 +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 439C621E64 for ; Thu, 6 May 2021 13:41:53 +0200 (CEST) Received: from localhost ([::1]:59260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lecO5-0006xB-5p for larch@yhetil.org; Thu, 06 May 2021 07:41:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lecMH-0006uv-SZ for emacs-orgmode@gnu.org; Thu, 06 May 2021 07:39:57 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:49763) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lecMA-0004jG-Oj for emacs-orgmode@gnu.org; Thu, 06 May 2021 07:39:57 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 13D125C0117 for ; Thu, 6 May 2021 07:39:46 -0400 (EDT) Received: from imap21 ([10.202.2.71]) by compute2.internal (MEProxy); Thu, 06 May 2021 07:39:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Kif6zf jXdzbK22OtIebO83YrzI/cqZ9zOjfqqmacuXk=; b=HXOuhm4AIwwO6jz6Z88iUa 9yCfIUv0APzkZOWJRrALQH7rmtAsSVlFK4yiGelNTmNIgmLUue5b/MVDQ9sWQ757 vXf15exI6SlhXaTTLG9DT7o2+mj+BBuKAatLc8UKHfG4SoZ808DydL7vC/UQ8zix LHLMTi3JMq2D1Rt0BIFloGhnBUNJlZvyvz0ZQrop0TJIKUC2PxoT+TVFZpwijNnP BW+aqthAjaUVCN+u3fTsupWYW6V1uLSXdTyK01XkCqWnYB9t+E/xsmrop1UjVh7F 9fuyXQ5symHtxxJXzTl2UBG2gpe4gzyZ80tD6BJCn96wo2QK6chOXgx1zAah1TIA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdegtddggedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesrgdtreerreertdenucfhrhhomhepfdfpihgt hhholhgrshcuufgrvhgrghgvfdcuoehnihgtkhesnhhitghkshgrvhgrghgvrdgtrgeqne cuggftrfgrthhtvghrnhepgeetffetvdefudekhefffedtudefjeegfeduffelheffueeg vedtudevueefheeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepnhhitghksehnihgtkhhsrghvrghgvgdrtggr X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id D718151C0060; Thu, 6 May 2021 07:39:45 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-448-gae190416c7-fm-20210505.004-gae190416 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <87h7jhus7k.fsf@spx.local.example> Date: Thu, 06 May 2021 07:39:25 -0400 From: "Nicholas Savage" To: "Emanuel Berg via General discussions about Org-mode." Subject: Re: babel output seems to drop anything before % (in session) Content-Type: multipart/alternative; boundary=85fdcd74b6ed4b5196c05a78277e977e Received-SPF: none client-ip=66.111.4.26; envelope-from=nick@nicksavage.ca; helo=out2-smtp.messagingengine.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=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: , 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=1620301313; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=Kif6zfjXdzbK22OtIebO83YrzI/cqZ9zOjfqqmacuXk=; b=nk5cqIpO1zQu3b6tnZk5BVMDhNsFLr1vhYTyPUt6aW+jzVyjBBQJgqbDtjLw4Osy55wcN5 u8fDl6KLuxrtUDHu37TSnd2uCGQgaZsDpWMqS4q+8kGRT6mHWh2/uL1wfRhu2VbIKnWg/7 HCrzzvw7Abw+SDm0KQfHHAt/J8FHBpURmjN4hYEiEYRipqQ6vDwB/P7+KWbONYa+Cl8l6a al6wNvPiOQ1/Jx18CG+nVVDvk99v8wqHCFw/4zxS9nLFhiceidrjQRF1iiSAHQnyBWG88Q +lJKSSVA5xHP1ggMEsA8vAL73gxR3jEunf+eh69S1gT5bgDoGk7ajScn1cwt0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620301313; a=rsa-sha256; cv=none; b=oehSiQJF/YXTk6mbrQd4EHVbcyEE4RZ/3y7FJZu0/8OPDSMGz4KdIAPiC7RzfJlymn9epg L61vtazL9kUMTAXdsEEVlGYoU+S/Z6nvocAsbg66U7L+ntTdxLeTYWDR5RWfU6/oKrO+W8 S7au2gIQzbD0LnlZQJKmFw4hG3d/PqIajYXl5k8CFIsnoVUor+CILeoK4dK7/cJg/pDyck /5n+WrUgp2deugIWCVkIVDcU/yadX80rG8z6rzKRMfMPa6nPIy1VtiVnYbzMsJAbzAfJo+ //ky+rsWoUZX+vjPA5UIvrs3YP1XVniLKq1p62mXPTdB7pDwgP0C0IBvEcQyRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=HXOuhm4A; 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: -0.15 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=HXOuhm4A; dmarc=none; 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: 439C621E64 X-Spam-Score: -0.15 X-Migadu-Scanner: scn0.migadu.com X-TUID: UOr/A6kBhO3z --85fdcd74b6ed4b5196c05a78277e977e Content-Type: text/plain I can confirm this too on the latest master. I took a quick peek this morning, and my suspicion is that the problem is somewhere within org-babel-comint-with-output in lisp/ob-comint.el, but I'm not positive at this point. On Wed, May 5, 2021, at 22:35, John Corless wrote: > 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 >> --85fdcd74b6ed4b5196c05a78277e977e Content-Type: text/html Content-Transfer-Encoding: quoted-printable
I can confirm t= his too on the latest master.

I took a quic= k peek this morning, and my suspicion is that the problem is somewhere w= ithin org-babel-comint-with-output in lisp/ob-comint.el, but I'm not pos= itive at this point.

On Wed, May 5, 2021, a= t 22:35, John Corless wrote:
Confirmed

Daniele,

I w= as able to reproduce the behavior you described.  Using the test ca= se...

#+BEGIN_SRC shell script :results output
p= ing -c 1 127.0.0.1
#+END_SRC

... the results outp= ut 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 ou= tput :session test
ping -c 1 127.0.0.1
#+END= _SRC

... the output line that in= cludes "0% packet loss" gets truncated to after the "%" sign.
<= div style=3D"font-family:monospace;" class=3D"qt-gmail_default">
I tes= ted with 9.4.5.

John


On Wed, May 5, 2= 021 at 10:19 AM Daniele Pizzolli <dan@= toel.it> wrote:

Hello,

Try to execute a few times the following and see the o= utput corrupted in
the line:

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

#+PROPERTY: header-args:shell
#+PROPERTY: heade= r-args:shell+ :results output verbatim :wrap src text :session test
<= /div>

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

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

I was not able t= o fix it, but hopefully the tests are still useful for
so= mebody more knowledgeable!

Thanks for you= suggestion/fix!

Best,
Dan= iele


--85fdcd74b6ed4b5196c05a78277e977e--