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 aJPEJivgn2IlswAAbAwnHQ (envelope-from ) for ; Wed, 08 Jun 2022 01:32:59 +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 2KW2JSvgn2ITYQEAG6o9tA (envelope-from ) for ; Wed, 08 Jun 2022 01:32:59 +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 359629F5F for ; Wed, 8 Jun 2022 01:32:59 +0200 (CEST) Received: from localhost ([::1]:50218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nyih0-0003ms-Cf for larch@yhetil.org; Tue, 07 Jun 2022 19:32:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyi4t-00088B-Co for emacs-orgmode@gnu.org; Tue, 07 Jun 2022 18:53:35 -0400 Received: from peaceful.gatewayhost.com ([144.202.44.248]:59369) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nyi4r-0002xo-6X for emacs-orgmode@gnu.org; Tue, 07 Jun 2022 18:53:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hacktivista.org; s=mail; h=References:Cc:Subject:To:From:In-Reply-To: Message-Id:Date:Content-Type:Content-Transfer-Encoding:Mime-Version:Sender: Reply-To: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=k9OHueMklJKb48/0e4Ls0rm5TpJnpRYpq4junQzjghc=; b=JT3qGNEj+uBUa5rQ+tqf7YyyjT dRNM3YOgoIwI8NqaQX0RVkFZ6mSzrzpufB8gJDj577/g5SfZ0JiDNTssr3O+fVMynJ3EQf4jAi6w+ rT4FfeH6XD4rXLV9+3TfvCBXtU7/Ag6S+TxG1XlEI7/qGPEm8b55kcTll9I6ii2YWpkc=; Received: from [186.105.147.26] (helo=localhost) by peaceful.gatewayhost.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1nyi4p-002RSf-5W; Tue, 07 Jun 2022 18:53:31 -0400 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 07 Jun 2022 18:55:43 -0400 Message-Id: In-Reply-To: To: Subject: Re: babel output seems to drop anything before % (in session) Cc: , , X-Mailer: aerc 0.9.0 References: <875yt0myv0.fsf@localhost> Received-SPF: pass client-ip=144.202.44.248; envelope-from=libsys@hacktivista.org; helo=peaceful.gatewayhost.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, T_SCC_BODY_TEXT_LINE=-0.01 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" Reply-to: "Felix Freeman" From: "Felix Freeman" via "General discussions about Org-mode." X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654644779; h=from:from:sender:sender:reply-to: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=k9OHueMklJKb48/0e4Ls0rm5TpJnpRYpq4junQzjghc=; b=bcXkvdxvQG/CXI5BoM1SFjp/iLhRB0z4hmtLIyRQ7OaTAZw670Mim8jhHenTCPhzN9oTe8 z7dSfSsRQw5KK489uEodvDzXlAZRFPmXcD0ud8Vhbcpy28AUhvs33tqfYusExcWIh0Fcxi M+ttG8wmS2H0zM7BFRMxDNCtNhc7uktcALlcMzTxzd+AdwkTf++/L1QWbanKTy9cU7ElOH 3H2ZUqMRJbF7YHf4jZvM2XwCow2qLwezdB5SAKb8bP/H7UiZX6JHCy1pZjwzq4v49RNnCI 00uVhnMFYKP3F3OcrYZO6NqEAJpXIUfAPUgV8JXiI0FwNar4Vvg7Rb0Ds65Gqg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654644779; a=rsa-sha256; cv=none; b=cVv3NU3J+2RzcjU0nvyhi4suDX3r+unqD/R9EZiX9p8AlRa+wGEAOtl3t1K72SvyLr1MZy cTw5XG3WUAN7OQni+v7tm5YZQsdenUAM9gwvC5Jktv/czHpfWNzcClCZufevbsk+hJE2xO 7H++yldCJc2O2htGLgrPX6AVg2S6Rg9QGcOmpjCkxFu9YXR2w6oe4stvm6FSszCSkro0eo NRXFRGLCHRo3g3ImA5GLGP2WG4enzb8d/6LTIzjmtNzJ1DWz4hJfafe1BwNcLiRkWhvmtz kJqv8qBSKxFuBdvB5cRAt+gA48c2MjsVe466q8mzPONP9pOt7a0l17eMQgN4pw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hacktivista.org header.s=mail header.b=JT3qGNEj; dmarc=pass (policy=none) header.from=gnu.org; 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.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=hacktivista.org header.s=mail header.b=JT3qGNEj; dmarc=pass (policy=none) header.from=gnu.org; 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: 359629F5F X-Spam-Score: -1.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5UyMn5nntdIZ > (setq shell-prompt-pattern "^sh-[[:digit:]].[[:digit:]]\$ ") Updated this bit for something better written for emacs and suitable for my use cases: bash and SSH over TRAMP. I'll leave it here in case anyone else needs it in the future: (setq shell-prompt-pattern "^\\(sh-[[:digit:]]\\.[[:digit:]]\\|/ssh:[^:]+:[= ^$]+\\)$ ") Notice it requires the patch to org-babel-sh-strip-weird-long-prompt posted earlier. I hope I got it right this time ^_^' Felix Freeman