From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 SNQ+JxTbSGP1BgAAbAwnHQ (envelope-from ) for ; Fri, 14 Oct 2022 05:44:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gOWMJhTbSGOWyQAAG6o9tA (envelope-from ) for ; Fri, 14 Oct 2022 05:44:20 +0200 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 6284033506 for ; Fri, 14 Oct 2022 05:44:19 +0200 (CEST) Received: from localhost ([::1]:58784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojBcP-0001lo-Ht for larch@yhetil.org; Thu, 13 Oct 2022 23:44:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojBbh-0001k6-Ma for emacs-orgmode@gnu.org; Thu, 13 Oct 2022 23:43:33 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:38891) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojBba-0005KQ-Kc for emacs-orgmode@gnu.org; Thu, 13 Oct 2022 23:43:28 -0400 Received: by mail-pf1-x431.google.com with SMTP id p14so3764729pfq.5 for ; Thu, 13 Oct 2022 20:43:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=0zAhcDEz2TD77DDj724w52N84H64BGKuTE+/d+lQyUA=; b=T2PUkQEJiSURs3FfOI9ksZkrQ5dFZR0yFr7EAJzGMWsfGw55/9C5f6/QXzJ72eLZih CH/U1JChSw2LKo6JjhHS1NM56WEOSAGgFq15su+6svkmAtDBgscKUm0TEz16MpyPbSoj c2HEVSawPf+I58W+tQVG7t5vrXXHHItkRVY850rWuApUvZEex2K8Fg4M2PT+N3BVBn+d pxlhRVKQdtBDyNOP1X1RoaLRmrKMK4PHyi5cY2fb1hdfnqB+cNMvX0NC+wB3rGLhN6pG G0nAQEWQaOuS13X77nnF7xtTcB1g7S4t1NkKfKZ/PEUpDJN2ZU3/gLo4CCVeXWM9HxT9 3Czw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0zAhcDEz2TD77DDj724w52N84H64BGKuTE+/d+lQyUA=; b=Ip2MTDX04WgKz8dX4j58TSk/ToyIIezUmNDUt1+onypz8KuIIezDHjC1GhshhPuvD2 pFd1NZMco+R4haK7GlWkrogKHjzmYEZloJGeXQ+iBScVjSR7zTCr1pTmjRkTwRovv/xW GxES2C0WlraplHy0lSyRoRjm5sRET3mB8PtUO8xGFWyrTjODifgO6pUexKtLicen5YKP +ZfVs7xvfXKFaZBzelNlmUyWpn5e8lMfplJn+3MGDrI5e9ZuKhUwsNvuC9RurIS7ok9N jFyrg7Use2eL9sflQDpFXL1A0Ox6Nm/z3GSC8J4gcy7Xi5R4vAaF6DsF6p+6eF1gM/Oi gF9g== X-Gm-Message-State: ACrzQf1ioMQVYanAX2/pdd6qNrHUOy0bY3rbBmP85IK9c8ooG0AmqLAg 5M3EzDM8S5IfT9xRix9PCQg= X-Google-Smtp-Source: AMsMyM6aBJS7BuqI1Qxk05e6vVDj+JjyZlkFmWncMmhobaHJOVxUEeMf0i4y8VOjiojTdY9qWKa6/w== X-Received: by 2002:a05:6a00:ac6:b0:530:3197:48b6 with SMTP id c6-20020a056a000ac600b00530319748b6mr3201320pfl.80.1665719005026; Thu, 13 Oct 2022 20:43:25 -0700 (PDT) Received: from localhost ([2409:8970:af2:32f:6c23:3ad5:f37d:541b]) by smtp.gmail.com with ESMTPSA id y4-20020a17090322c400b0017f75654a33sm582378plg.73.2022.10.13.20.43.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 20:43:24 -0700 (PDT) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Cc: emacs-orgmode@gnu.org Subject: Re: Org 9.6-pre and Bash sessions In-Reply-To: References: Date: Fri, 14 Oct 2022 11:44:11 +0800 Message-ID: <87edvbysqc.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=yantar92@gmail.com; helo=mail-pf1-x431.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.29 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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665719059; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=0zAhcDEz2TD77DDj724w52N84H64BGKuTE+/d+lQyUA=; b=QJqE7WSJk3v17Wlk0qOIDl9nNUhuGIEdB6ICVzoGtux9O5oz0G30RtXYwdBwgmDvJlLotU 0a+qup7a+vnW19DxtKJZNJyTLcA8oIWl+tBLRqM8VbwPSweA7ACSABLlz7BA38NNfza4CL XtxDI+gvombcOyDpa5QfPjDZa9uOul493CCAIDOOZDhpkEjXINATm61Jc4kFM/8OpDLpVB JwZdq+88kjOcz+sTTAqjgAE+JdiQFrW0LMR43KnGCekexoVWp72B/I9FVVFsevZT82ZjIW Rwk53yKdArqJaV2H4ftf+q2/HnI0w2oa52lYAYOXogEF918sK3OoUucLZEBd0w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665719059; a=rsa-sha256; cv=none; b=movtFIBG6N0+XimYKDI7CQNiMmfJiVtnbLXRv/o6G+QIRgKNLJjLMHes/pwY6KjU1/pjhe cRpRonuj9g+XUPdKULsSZqJqtwMa8kCnoENOMmgJLMCqPuNt8Rp85Z5dKWxM9LF4/Vaj/o YzaeDN0T1nM8amUqNHieKKn1BfzJo3gv8eoQmdVkmDWsWriwS4ZF9bc24dTt1zzFRNjcXI N2ykoBTfup/Yc+0eM76IDpWQdZFOFAUWFF90fkIirAhWCQdEdDGp/BTax4boJUDn3ZIFXW PTCCy7t6GvqDulDcEHZDUyUIhbX+NzRlXtcCWHVABtXTAAakZS7M8cLb6Y88Kg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=T2PUkQEJ; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -1.90 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=T2PUkQEJ; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 6284033506 X-Spam-Score: -1.90 X-Migadu-Scanner: scn1.migadu.com X-TUID: 7va9aX8JkHGE Rudolf Adamkovi=C4=8D writes: > I noticed today that Bash source blocks with ':session" does not seem to > work with Org 9.6-pre (3e8648775). Does anyone else have the problem? Confirmed. The cause is a35d16368 Author: Ihor Radchenko ob-shell: Fix output containing strings matching `comint-prompt-regexp' * lisp/ob-comint.el (org-babel-comint-wait-for-output): Do not rely on `face-at-point' returning non-nil. * lisp/ob-shell.el (org-babel-shell-set-prompt-commands): New constant holding shell-specific commands to change prompt. (org-babel-prompt-command): New variable holding command to be user to set distinguishable prompt. (org-babel-shell-initialize): Set `org-babel-prompt-command' according to shell name. (org-babel-sh-prompt): New variable holding default shell prompt. (org-babel-sh-initiate-session): Change the default prompt to `org-babel-sh-prompt' and alter `comint-prompt-regexp' to match it tightly. Fixes https://list.orgmode.org/CKK9TULBP2BG.2UITT31YJV03J@laptop/T/#mc8e3ca= 2f5f1b9a94040a68b4c6201234b209041c > CONFIGURATION FILE: > ------------------ > >> (setq-default org-use-extra-keys t) >> (with-eval-after-load 'org >> (add-to-list 'org-babel-load-languages '(shell . t)) >> ;; The weirdest API ever. >> (org-babel-do-load-languages >> 'org-babel-load-languages >> org-babel-load-languages)) > > TEST FILE: > --------- > >> * Something >>=20 >> 1. Something >>=20 >> #+begin_src bash :session test :results output >> if true >> then >> echo "hello" >> fi >> #+end_src > > REPRODUCTION STEPS: > ------------------ > > Execute the source block with C-c C-c. > > Expected: > > Block executes with the result "hello". Is it what you actually saw in the past? I just tried with older Org versions on my system and the output is : [00m > > > hello --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at