From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SG+aF03fk2CXWAEAgWs5BA (envelope-from ) for ; Thu, 06 May 2021 14:21:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CNkzE03fk2BvEwAAB5/wlQ (envelope-from ) for ; Thu, 06 May 2021 12:21:33 +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 BECA81CA18 for ; Thu, 6 May 2021 14:21:32 +0200 (CEST) Received: from localhost ([::1]:56910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1led0V-0000wd-RX for larch@yhetil.org; Thu, 06 May 2021 08:21:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lecz6-0000tl-AQ for emacs-orgmode@gnu.org; Thu, 06 May 2021 08:20:04 -0400 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]:47076) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lecz3-00024W-RR for emacs-orgmode@gnu.org; Thu, 06 May 2021 08:20:04 -0400 Received: by mail-lj1-x22b.google.com with SMTP id u20so6730096lja.13 for ; Thu, 06 May 2021 05:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:cc:date:message-id :mime-version; bh=a7PzUxtVhMZn5DDMl+5xlRVR04vXsF4/xNw1ImuFjAA=; b=acy9pM+5vQw17XPZyaaz1X6MoUi2jzIGLy/AvDBHODHUes9ldNfhy8wpTiZ11fvlqp OznEM5TyGR5L+LjUxbhIXusq45Wu8OuDq9u3nh42t9cn5urMUQ7UPY9TlwcIAQMZVRsp 3kS6Q+oIm8TnM31FgpoTipx+I8IqPPTLib5Noh6nLRVVouB4SGjiU4mT9eTmXH4quBfe gsqWgwoqtcJt6sKxVt4mWEVFDMtfCKd0+lq+fiFoOHSO8lt+W2G1zWRdAjUU+p/zXgbb JlFhbumvxFnwRE2hviYIhmyzVqg7Y+mfyTxchyk1ppiuvvnNQftw1BRYMFPrWYAho9fr 6lDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:cc:date :message-id:mime-version; bh=a7PzUxtVhMZn5DDMl+5xlRVR04vXsF4/xNw1ImuFjAA=; b=I3AkXGZIYLAM9lCDbICMB5tStkOr1VMsJy0g9qzHpJi3FcFxGc/4z7lKgLEfSrwz4P V5Rrwnyku1pCjZscvPTWGIIZ3KaUzR2XIqOkxs8Zc9NkQF+CHyThwXN1wV0b2QQzZi1T tp+vwc7hEGskfOOt1BVg89NAlUlgnAIMJBCp265xQWTf/KiyoHZ+vE62PInbVEksX2e0 MtkA9mY8xj8gwTj4bUITatNsz95zQF+Q8yXi8Khc138rZMU4fLKj451o8bPgMXqWt4s0 q4h5O4bMT/w/lev/xDWsqvAqesHjJBLOiDZRPD1qkhLYoB0EhlkM+tbh3LBzsRnl0WQA gnbA== X-Gm-Message-State: AOAM53039sjTbyquIP/Dc2R7EgeIYUXGiEhQoKnjf5rdUdPChUiIqT4L tQTfCAOdUOzmWBOP67VEt7g= X-Google-Smtp-Source: ABdhPJw52h7vwTLH+9o++eEf0xjOxqSnZPjEmMKp2fidd8OgewmUhO8LB2vlkbuomxSUJiNS2BeSgw== X-Received: by 2002:a05:651c:1182:: with SMTP id w2mr3095397ljo.108.1620303599507; Thu, 06 May 2021 05:19:59 -0700 (PDT) Received: from localhost ([141.105.67.194]) by smtp.gmail.com with ESMTPSA id w12sm636397lfe.203.2021.05.06.05.19.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 May 2021 05:19:58 -0700 (PDT) From: Ihor Radchenko To: Nicholas Savage Subject: Re: babel output seems to drop anything before % (in session) In-Reply-To: References: <87h7jhus7k.fsf@spx.local.example> Date: Thu, 06 May 2021 20:24:25 +0800 Message-ID: <87wnsc2gp2.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::22b; envelope-from=yantar92@gmail.com; helo=mail-lj1-x22b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=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: "Emanuel Berg via General discussions about Org-mode." 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=1620303692; 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=a7PzUxtVhMZn5DDMl+5xlRVR04vXsF4/xNw1ImuFjAA=; b=YZ1Asdp3dI7ERbqeLF403XanLYGiF8CDxd8/hbect2GHBP3nDxJu49Ka5JCnyINtM7etD5 slkT7YVUtKyhoYvCEZLm+chPExk2GqcpEX5sL8cDTPM1F4pBekdJ91pjSyhheZLlcT2PWh iSNjCFIKsEG6R5urdl74uePIpaheIWQ3jW90XcUG8DAFIi3wG0heLUQoUwVJZ7/5KX4or/ ErJdChF8YFRTwSTlJTaMXWL9jDIgSO0zas3L/pIgPmE2L3nrE9HbN33gLj6+rXastv/Kz9 r4PEdrVJFaYtpvBQXOkdsnGxfyL+e38apZA2obeXsCET3Yv6IxmGt3UKbbpw9g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620303692; a=rsa-sha256; cv=none; b=f9PYBZtRKDSF6jvjwDFrJuJ+GvVFBwnoWTmqnUCV7n3rzgzD/j8YWuk4+8vLZEOk6eYssC GbxgiSigm+jxBlNdE1ewuWFUi10JuFZkJBrrUOhR+2fXtC3GOUbdveYzJRCs8IvvhvhXAG KqklEUDqS5QJEikd2RngdAKMSADkeRjk6tPwK9xzX/gPDotD2Mfs+aPSdRga8MJ+Q1EpFm CHuk757Ady65ZjlQulyhQKyqP5SliV8RVsolhdHEQ9U58c01RVyJyDAlUYn7TxyQuX6ful BNBTs4YSyPh921u9p5c+IagwfN+gDa03pfe3VrnQ47YUq4fbnZ0EBffeEU+CKQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=acy9pM+5; 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.16 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=acy9pM+5; 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: BECA81CA18 X-Spam-Score: -1.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: A+W3IoQXdPR4 "Nicholas Savage" writes: > 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. I confirm as well. I also saw an anomaly in the comint buffer. Note that all the output lines, except "five 0% six" are after the shell prompt. As I remember, the code expects the result to be exactly at the prompt line. So, for some reason the first command ("echo five 0% six") of the second block does not get inserted at the empty line. echo one 0% two yantar92@yantar92-laptop ~/.data/1e/90360c-ef36-4d20-8706-990ae2530cbf $ one 0% two echo tree 0% four yantar92@yantar92-laptop ~/.data/1e/90360c-ef36-4d20-8706-990ae2530cbf $ tree 0% four echo 'org_babel_sh_eoe' yantar92@yantar92-laptop ~/.data/1e/90360c-ef36-4d20-8706-990ae2530cbf $ org_babel_sh_eoe yantar92@yantar92-laptop ~/.data/1e/90360c-ef36-4d20-8706-990ae2530cbf $ echo five 0% six five 0% six echo seven 0% eight yantar92@yantar92-laptop ~/.data/1e/90360c-ef36-4d20-8706-990ae2530cbf $ seven 0% eight echo 'org_babel_sh_eoe' yantar92@yantar92-laptop ~/.data/1e/90360c-ef36-4d20-8706-990ae2530cbf $ org_babel_sh_eoe yantar92@yantar92-laptop ~/.data/1e/90360c-ef36-4d20-8706-990ae2530cbf $ Best, Ihor