From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wH7TEM3TG2TBigAASxT56A (envelope-from ) for ; Thu, 23 Mar 2023 05:21:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mIn1EM3TG2Q3pAAA9RJhRA (envelope-from ) for ; Thu, 23 Mar 2023 05:21:33 +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 E2884BA55 for ; Thu, 23 Mar 2023 05:21:32 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=Sc4gvWAW; arc=pass ("zohomail.com:s=zohoarc:i=1"); 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679545293; 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=f1ktGfnOcZEFnEntz2HEZrtzGOuSQVMCakOoLbI3nKU=; b=goiqb2yVFUj7E2/+Uo9DMT8vpJkpQQMA72NBqPDiD4mkHPgXJtwcc4Ix8iUka1xDtjJgqy JOoF3bMSulsyi2I8Pt+wEpzhZrnKG0PJrOCptI+xJCDsD3DmlmdEs9NF+Pcnsp2QtPOUbx oXYFvDXvEyvoO8ff2tBzFhg+nz9rrukaV0QsBw2WEjFbzX0dT401VjnO1pDgnMi7AhwJ0T umZwn6LR8AlpRN3JQWE0Hk+3v/Pqdmmy+mvMjL3USjp3NGZjpt0CwdTrmvU0xE1wkSKt1I J6M7OJLRd4Lgi1wtcgrhww1Aj2Xe/1fcCTdsDLN/pzIgTn6CFEyFbOBlIjFrCg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1679545293; a=rsa-sha256; cv=pass; b=n8OiFsclbz7CAXb1f51PgMZzvtThaDzlFtWtRBUE8JJ7JJVmISozufORdVeHF3iyy/UW0V hTH/Qf7Fozm0PhtAQ6b3oTseSGOHiYdNuDh6I7eDGBk2y57YEESFj3T8VoUFpfUhi1PxCZ LUq/+MrOZIObSiiGHDzezMqloCu4YCQHAIcxKOoyMRMkFIslkSOaAjB1JFBvOgqevTGypo fb6TC61Yqq6Lpc4WEnomfqT1sOSts7ni52xvRC0NKx/9vx+B1Q28PVLRp4x5fpZ63Hybal oWC2EZgoFMMyoVBULDH5uxdNF4oXZPug/Mjr3a8Q3mWpfVhSaoVpmopBHvtytA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=Sc4gvWAW; arc=pass ("zohomail.com:s=zohoarc:i=1"); 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pfCS6-0004xG-1p; Thu, 23 Mar 2023 00:21:26 -0400 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 1pfCS1-0004wg-VL for emacs-orgmode@gnu.org; Thu, 23 Mar 2023 00:21:21 -0400 Received: from sender3-op-o17.zoho.com ([136.143.184.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pfCS0-0002G1-Ap for emacs-orgmode@gnu.org; Thu, 23 Mar 2023 00:21:21 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1679545275; cv=none; d=zohomail.com; s=zohoarc; b=JxGYaxM0jeeIRh/G3K7ya74+GiNxfu/xEjQBLtsa9qJq3M+p3vUNFFOLnVkgZPYSr54CTMoXdkHurFs0Ke5weHZtQYdMCIHg4KtZZn2mCxIwmOML1jq0uPLqiS5a2eDrfDcawLZqB29S4uYaU6oUOW1kdISQg4aAT/FK6tiM6qM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1679545275; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=f1ktGfnOcZEFnEntz2HEZrtzGOuSQVMCakOoLbI3nKU=; b=P/gyciNGpnWsxCXi2SbRsHhUUDIM4N/xxQzF4rc9sDjrZ5MiDJFEVZEpW3Pd9SlyjV+EYn+nleOUsvRkacVhVkN0C5VS+S50+AiWCOgJVI3aYH76Y6vjBCHZwxjbojC2NymDdQw4BotPWZnu2LXdKLbxrhoHhbXWnXzYR6SZ0kw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=excalamus.com; spf=pass smtp.mailfrom=matt@excalamus.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1679545275; s=zmail; d=excalamus.com; i=matt@excalamus.com; h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=f1ktGfnOcZEFnEntz2HEZrtzGOuSQVMCakOoLbI3nKU=; b=Sc4gvWAWTDws1r30h3EQd6c47F6FEx41MAGH3zq5XlyLkIN2yFo55Sqq9V2IMx+I MYA/ew+9x9SuQDcXjMd9u75wJzfbj8oHRdG+9hZj0nmLhwTQlj39ikK6jI5OPnx5kYJ NebjLtWXVV3f8LqAZW5YbAQn46f/0/RiEdnootvk= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1679545273423627.2476545462464; Wed, 22 Mar 2023 21:21:13 -0700 (PDT) Date: Thu, 23 Mar 2023 00:21:13 -0400 From: Matt To: "numbchild" Cc: "Ihor Radchenko" , "emacs-orgmode" Message-ID: <1870cb30c41.ba75a358545366.6275787333945468963@excalamus.com> In-Reply-To: References: <186283d230a.129f5feb61660123.3289004102603503414@excalamus.com> <87v8kd8zzw.fsf@localhost> <1863472efe9.10fdd5ba4258906.5972264927968042941@excalamus.com> <87y1p7axpe.fsf@localhost> Subject: Re: [SUGGESTION] ob-shell async result output should not contains shell prompt MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Received-SPF: pass client-ip=136.143.184.17; envelope-from=matt@excalamus.com; helo=sender3-op-o17.zoho.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, 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: X-Migadu-Queue-Id: E2884BA55 X-Spam-Score: -8.24 X-Migadu-Spam-Score: -8.24 X-Migadu-Scanner: scn0.migadu.com 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: ZnF4uZvwwhzI ---- On Wed, 22 Mar 2023 23:25:50 -0400 Christopher M. Miles wrote --- > > The ob-shell async result output contains the shell prompt. I think it > should not be captured. > > #+begin_src shell :session "test2" :async t > sleep 30 > echo "hello, world" > #+end_src > > #+RESULTS[(2023-03-23 11:19:22) 461ed5de684f6e619890709175ec73e80b67b2d6]: > : bash-5.2$ hello, world Thanks for reporting this. Try using for the babel language whatever shell the variable `shell-file-name' gives. For example, if `shell-file-name' is /bin/bash, do this: #+begin_src bash :session "test2" :async t sleep 1 echo "hello, world" #+end_src Is there a reason you're using "shell" instead of one of the shells listed in `org-babel-shell-names'?