From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gC42L5U4wGD0vAAAgWs5BA (envelope-from ) for ; Wed, 09 Jun 2021 05:42:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2PQuKpU4wGDsDwAAbx9fmQ (envelope-from ) for ; Wed, 09 Jun 2021 03:42:13 +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 24F3B24DC0 for ; Wed, 9 Jun 2021 05:42:13 +0200 (CEST) Received: from localhost ([::1]:49452 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqp6a-000591-3C for larch@yhetil.org; Tue, 08 Jun 2021 23:42:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqp6D-00058c-5w for emacs-orgmode@gnu.org; Tue, 08 Jun 2021 23:41:49 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:39445) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqp6B-0006rD-DE; Tue, 08 Jun 2021 23:41:48 -0400 Received: by mail-wr1-x429.google.com with SMTP id l2so23800937wrw.6; Tue, 08 Jun 2021 20:41:46 -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=KNqMLT0mW9sjE4mBzcG2OpWQhTNUYFk3VW7kbBxidD8=; b=apR8mRh+g64K8wgc8U2yGi+NwNIrLmG62lt/pLSOP7KBvavFDTIKPbxYWjw52Tr+1R BgKPzvnM4Ivzf9Nm1/tNRwlBmmc8IXM+LHfhiAfNSzQMr2arEGra56DJv6jzFW3TDL+8 m1yvjw1jUzE/Bqrl1vp3etlZf/ZJtCM2OITzYQIV+VPTlbeCSP2mBVAnUx4xG7FPsAN6 4F+rR95JMT8qPP9+LinqBEmpghhXNRz3I/aEsuRLRv9b3aAbx9qpVuaN2RoaVXlNF2qP xWwL8eNuw8sFbT/iywiH6b3iGEPN/fK+e5Fylol5SUmR8QbnROl27wp8x8/9/KNPBsXn OX3A== 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=KNqMLT0mW9sjE4mBzcG2OpWQhTNUYFk3VW7kbBxidD8=; b=hao7FTCLWQ/LUCndR964drsht8x8gbRA191yxN8KmOzd1eXwtjj1ifMlQSww/CYOsS Q7cg4op4oJRCwpYOtOYClqeK6BrwEaTnuIQ8RZN7Poz7/qLEe6IyX8+5ng2jbWc2duhj i4RsG2SjJTeg5l//X6hrlE12uEBNdUaJkJupwNKdw1pf1DHXGC4pHQOpNGnDiODsOgkP favv/ADX5QdF2fazSnu0KCKkPEeui3T1Wxn3R2KiddQVGaoPLIYQADR26dkSUU0ekkFk kNfmAo0aoWhQNmbuGxSsMuusWvQ4SyOb92422xUu5WNfW4LJEuWMXGdSsq4Fjv6yETFy izmg== X-Gm-Message-State: AOAM531037MACN3gerTP1UUcU/y7zvLO6A3z1xwWjo38jv1xDPqVqrYt /yHw0EX+2sl7sw46USx4ysoT72D+vOMBA1wehag= X-Google-Smtp-Source: ABdhPJzib/YKu5NDNP8SDXIB76x7JWdElG5+5YXyCrXQHxQ9qGhnUb0KG52pmkBGc0fZkOzsnVjZbTKTykViS3AIe3A= X-Received: by 2002:adf:fa46:: with SMTP id y6mr25885582wrr.194.1623210104633; Tue, 08 Jun 2021 20:41:44 -0700 (PDT) MIME-Version: 1.0 References: <87h7jhus7k.fsf@spx.local.example> <87wnsc2gp2.fsf@localhost> <5780a7fb-17b5-6bde-f3a1-ef741af57734@nicksavage.ca> <874kf3hgge.fsf@gnu.org> In-Reply-To: <874kf3hgge.fsf@gnu.org> From: Kaushal Modi Date: Tue, 8 Jun 2021 23:41:08 -0400 Message-ID: Subject: Re: babel output seems to drop anything before % (in session) To: Nick Savage Content-Type: multipart/alternative; boundary="000000000000aebaeb05c44d0dff" Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=kaushal.modi@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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bastien , emacs-org list , Ihor Radchenko 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=1623210133; 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=KNqMLT0mW9sjE4mBzcG2OpWQhTNUYFk3VW7kbBxidD8=; b=G6oXenFQFvDhJ4xJhkqg5fw5SCqB5vITy3frs1w7/tR4K/7nmzsIhrKVaogBzV0alAzmJt EsOK3EffEs/sGSgkWl9JwAO//Erk7Z0+yMrl2cwvBCj0gPJ4k30BoAXaN+HOC+6fF9HfZN EJ0gpPw8I2hTFlr4PBEm7sX8cu0RIrrDA0xSbpE32cOmXf1heif21xHUOR4Y4nOu2kwZ5T xFX3RM1tSoF5f8cXsRWod5ZRkYa4RtJr0YvhPA9x7I4/krig0FDJeNeGhah/5w0TYFItB5 z5hfGLqlCZnNvQ8MXxsupT6J+fqrblXxOWaGhJMSL7QyadJpe4wP5bYY7CeMgA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623210133; a=rsa-sha256; cv=none; b=Gbqa1EchExZOuNMnKTmP8FAD8kl4iFFZ0mv4DIboDalnGqI801fB+JdXcJHMo2nN0t26Yr ixA6I3pWL5dYdbz9HI3RRlBiUNBeOh0Psqxqb+3JBOU/I0jxKwf1af83io7YmMCK+yvkHT 5RIBCSdGkyHAY6qm5RwpRFoXNa89ySaO293zdNT5CumJJucP6jISptz+fVATdyuvuOL8Gc rlvZC3p+Zxkfew1bhtxfDgY0isHVGxVup1VRWPi8rsGTUPovNcfOFAV9bmvgZJQ+jdQtz7 WeAynnxpI8oWeWQdvs7iq3xLrB9SdsLOMFOKalKkTf+K6sOhvoz7U0e0AN0aKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=apR8mRh+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=apR8mRh+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 24F3B24DC0 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: jtlrz5OXXAEw --000000000000aebaeb05c44d0dff Content-Type: text/plain; charset="UTF-8" Today I ended up on possibly a related issue with ob-shell results. Observations: 1. Issue triggered when using :session 2. Output text is OK for the the first shell src block's output. But for the second block, the output before '>' gets truncated. Here's a minimal reproducible example: ===== #+property: header-args:shell :exports both :results output :session *ob-shell-session-issue* #+begin_src shell echo "1 > 0" #+end_src #+RESULTS: : : 1 > 0 #+begin_src shell echo "1 > 0" #+end_src #+RESULTS: : : 0 ===== The root cause seems to be similar, with detection of shell prompt: '>', '%', etc. when session is enabled. -- Kaushal Modi On Sat, May 15, 2021 at 4:48 PM Bastien wrote: > Hi Nick, > > Nick Savage writes: > > > So I have a patch written that doesn't completely fix the problem, but > > maybe makes enough progress that someone else can figure it out. > > I hope you can continue to make progress on this (annoying) one. > > Let us know! > > -- > Bastien > > --000000000000aebaeb05c44d0dff Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Today I ended up on possibly a related is= sue with ob-shell results.

Observations:
1. Issue triggered when using :session
<= div>2. Output text is OK for the the first shell src block's output. Bu= t for the second block, the output before '>' gets truncated.

Here's a minimal reproducible example:

=3D=3D=3D=3D=3D
#+property: header-args:shell :exports both := results output :session *ob-shell-session-issue*

#+begin_src shellecho "1 > 0"
#+end_src

#+RESULTS:
:
: 1 >= ; 0

#+begin_src shell
echo "1 > 0"
#+end_src
<= br>#+RESULTS:
:
: 0
=3D=3D=3D=3D=3D

The root c= ause seems to be similar, with detection of shell prompt: '>', &= #39;%', etc. when session is enabled.


--
Kaushal Modi


On Sat, May 15, 2021 at 4:48 PM Bastien <bzg@gnu.org> wrote:
Hi Nick,

Nick Savage <nic= k@nicksavage.ca> writes:

> So I have a patch written that doesn't completely fix the problem,= but
> maybe makes enough progress that someone else can figure it out.

I hope you can continue to make progress on this (annoying) one.=C2=A0

Let us know!

--
=C2=A0Bastien

--000000000000aebaeb05c44d0dff--