From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cLcqOqh57GNdNQAAbAwnHQ (envelope-from ) for ; Wed, 15 Feb 2023 07:20:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0FJNOqh57GNe7gAAauVa8A (envelope-from ) for ; Wed, 15 Feb 2023 07:20:24 +0100 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 9C2CB3D621 for ; Wed, 15 Feb 2023 07:20:23 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tatersworld.org header.s=x header.b=DhKJtz8N; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676442024; 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=px2WF1lRE5eJ3qnPFFlDNccP2D9zDKBw/5O6SmVlZCo=; b=eSbQZbVLzr1GAakmV6fMqfDh50vaddGC3RjAuKaZ6r8c14o2kwMkDgYdJ8GGRFYb35Uqc8 RUJHY5MbIqW/VNnDyZWyNxd2Pi8e/j9n4cHa6Wy+qiZ/5ZcsmfBSGJwhCUb7JWYICqG7em eFgKij2iR+4AkNrL1uFLGZVUWNmj63pLupRwZc/+lWteqmLFFNEAd87BwU8UVUVslBOoje YHgoyWfItXwERXF0DVQgK/Ft0t0GBsMeTO91bouogRcniLYE9JVxVDKP2B+btGN8pCwzDT evWHXBJmCTKOR+ZUMLOwhozZumTMfpAzaq9z2QXHrOOj5VeK4eeG3QyLzOoFHQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tatersworld.org header.s=x header.b=DhKJtz8N; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676442024; a=rsa-sha256; cv=none; b=IvYiK5SAS4CaXIvMQTlttHL9lQTcTWoETiPo6WZloykJdPj8/889PsXc873cQm/W02GK+7 0TUv07C+TDyIGkieoVTsQKDqjZUsoEOIyrzVLttn3apnQQBfxkT0CVG6qtftB0Jc1yIpMi +pKm/ZkzCyvnY0ksAbJyc3QWH0FmL0ToyuJ7VXj3iqabvqlCvDcIK8VbmTXwqtEU7Wg2Q7 siiSdy9Cn6iTysqW/Osxut2UoE2YPxiN5/BAkNcVXirbpi9fvSUncmrSiHJ0CSTZAtT4Z8 owlnY337j+Qw+mYwpOXh1yPCbv5jmTskWtR5r76HadNAQDEjdKD3bw1iAGGeRQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSB8N-00025E-OM; Wed, 15 Feb 2023 01:19:15 -0500 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 1pSB8M-00024r-6W for emacs-orgmode@gnu.org; Wed, 15 Feb 2023 01:19:14 -0500 Received: from mail-108-mta188.mxroute.com ([136.175.108.188]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSB8K-0002Xg-IJ for emacs-orgmode@gnu.org; Wed, 15 Feb 2023 01:19:13 -0500 Received: from mail-111-mta2.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta188.mxroute.com (ZoneMTA) with ESMTPSA id 18653ba0f29000edb4.002 for (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256); Wed, 15 Feb 2023 06:19:07 +0000 X-Zone-Loop: 2217f059849e229d3b425f3951de3aa3258f76857882 X-Originating-IP: [136.175.111.2] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tatersworld.org; s=x; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=px2WF1lRE5eJ3qnPFFlDNccP2D9zDKBw/5O6SmVlZCo=; b=DhKJtz8Na+X8azH8foa6p6OPNE LR01owteSVGGF3oG1RAgo4LKuDJ/QBiODgrVBXQlphq20UGbPoayxo8nIPUkkWTXTBmNMV7UyN+/u UsmjF7e6oqE574A1lucgW1b6uGmLSM+5WnaANniyLteJe/3jqvmEgmoBKhihD5fQ/ao+jqzLE6rZp nZfF6aAgvj7KQT5mbI/ObPpLmxYKnTaVhzcF2u5bC2A36MwLji9BKzgqakGAJA//KlrFI2Fj/u+sZ 7WOz3VGQ6imKwkqHe/G7WCV/N1NO/Ws1J7rhDHDiNV5omVDsJj5p4EIMTH7KbP0vrI3LzEJZqbdl9 P6jHhEKQ==; From: Jack Kamm To: Matt Cc: emacs-orgmode Subject: Re: [BUG] shell sessions started outside of Babel broken In-Reply-To: <1864bbf632d.acf83486624816.5548943856411522610@excalamus.com> References: <186283d230a.129f5feb61660123.3289004102603503414@excalamus.com> <87a61j3orj.fsf@gmail.com> <1864701b4b8.e37160d6373275.4308190093579612690@excalamus.com> <87357a2r27.fsf@gmail.com> <1864bbf632d.acf83486624816.5548943856411522610@excalamus.com> Date: Tue, 14 Feb 2023 22:19:05 -0800 Message-ID: <87wn4j1mee.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Id: jackkamm@tatersworld.org Received-SPF: pass client-ip=136.175.108.188; envelope-from=jackkamm@tatersworld.org; helo=mail-108-mta188.mxroute.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, 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: X-Migadu-Queue-Id: 9C2CB3D621 X-Spam-Score: 0.08 X-Migadu-Spam-Score: 0.08 X-Migadu-Scanner: scn0.migadu.com 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-Country: US X-Migadu-Flow: FLOW_IN X-TUID: d5UgPka8LVEu Matt writes: > Can you please elaborate? > > The following does what I expect it to: Sorry -- I'm unable to reproduce the problem I was having before. Very confused...anyways, thanks for looking into it. In particular, ob-shell works with M-x shell sessions for me again now, though I do experience some mangling of the results. In particular here's the output I get now for: 0. emacs -Q -L ~/src/org-mode/lisp 1. M-x shell 2. Call `org-ctrl-c-ctrl-c' on the following block in a separate Org buffer: #+begin_src sh :session *shell* echo hello world! #+end_src #+RESULTS: | hello | world! | | | | | org_babel_sh_eoe | | So, ob-shell mostly works, but the result is a bit mangled with the eoe token leaking through. This might not be a new bug, my memory is that ob-shell sessions has long had problems with leaky results. I am using zsh with following emacs and Org versions: #+begin_src emacs-lisp (emacs-version) #+end_src #+RESULTS: : GNU Emacs 28.1 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.17.6, Xaw3d scroll bars) : of 2023-01-20 #+begin_src emacs-lisp (org-version nil t) #+end_src #+RESULTS: : Org mode version 9.6.1 (release_9.6.1-250-ge6353d @ /home/jack/src/org-mode/lisp/)