From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 6HxCAzML7GUnxgAAe85BDQ:P1 (envelope-from ) for ; Sat, 09 Mar 2024 08:09:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 6HxCAzML7GUnxgAAe85BDQ (envelope-from ) for ; Sat, 09 Mar 2024 08:09:39 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b="Uz5eeY/c"; 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=pass ("zohomail.com:s=zohoarc:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709968178; 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=t/t9TiZcZb3n3lMjhr/eAtZrg2cszsKgxItNIB0yj/g=; b=mN5xy+O1Eu/7O89/v/mlQMXueX2mcvLpvp7ZeRcZy3uryoHPt2adpTbYtiQhPSJloL+ymS vMrnAPHLVVxum+AHxoufam6kRkY1WO7ooObXRETHHyy1RN9kbTcQRYRQLjvOOZvF3QuOVf quewC5Kmx2AJUbzkTOFFn/SJqfLGQy62bHsrz2uRfznyKi90LURLZlV+dwN7qx3SX0/lPd m6x+hvGlMlm/31J9vGdGEPiD23zvJhN+TW88CKmOJttlTJzaB8R8Uk7FWBBpAtP/zYgFzp p0oRDWWDKKSah6sW9YR9/vJi93NLqyzl0bwLZEHRTF/dBetXnT849D3hauGqKw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b="Uz5eeY/c"; 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=pass ("zohomail.com:s=zohoarc:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1709968178; a=rsa-sha256; cv=pass; b=GEiOShI9l4V+YV5Hum44thuJENkdABIL90h0ugfhi/VeltVFZ8EOj/PkCcX94jnDfHILxD lV1F7glEfMjr2cLeQlwbq+dPPDAgtnBhtWVtFGU0vb9gsvDWOFHz6uznpjesfgxs/1H89t nOuJSu9tyPU1vBEg/kKsRcSgl8Y40gyPmGyYbUko33Lh4mHi6cvmETvNCmzFz1B7JB9viX DdQG8gMuhxUj1w7MaemwFerQ9f1vLMUDyPc8YUzxyGwJrSKJoMEP/ZK3M0vfsXtpH+cQ3L /+O1XgO+t9VtlNf7Wukk/0w0isgtqk0XotsKeufdNbkBIs9q22LD6Ot2lSgKsA== 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 C620F40F9A for ; Sat, 9 Mar 2024 08:09:38 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1riqoy-0004Jt-EJ; Sat, 09 Mar 2024 02:08:40 -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 1riqow-0004Jg-5k for emacs-orgmode@gnu.org; Sat, 09 Mar 2024 02:08:38 -0500 Received: from sender4-pp-f112.zoho.com ([136.143.188.112]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1riqou-0001ov-9j for emacs-orgmode@gnu.org; Sat, 09 Mar 2024 02:08:37 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1709968111; cv=none; d=zohomail.com; s=zohoarc; b=AjnWhvQ3sUXuHmn1U+uzKsuCYl2wi0qlcrjOCqJh53163pVk5ZMXjM359ChveahwQowbpNZgSqjYgPFkmRZVz2uLOmOoRap3iDGTV4lGwtFtWAjbuZRqmhTfGYeOr/zJxfpScZZMdth8yUHmjVNatGzY/Z4O649Jot8miY0guGc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1709968111; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=t/t9TiZcZb3n3lMjhr/eAtZrg2cszsKgxItNIB0yj/g=; b=PEg+rrrq98pNvZdFXcasuM811XH36RidONlixVztpfo+mwvy2pAn1J10NBZQa8LozUBRieidGKUeDekph0rLa+zPBm0xd5oMedT2VEVop8I18BypUivwKCGYC/zG2JwO80TOPdA9S14ezhiFsS21Jsz3ojsz+SzGftbDGHn4N70= 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=1709968111; 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=t/t9TiZcZb3n3lMjhr/eAtZrg2cszsKgxItNIB0yj/g=; b=Uz5eeY/cCUWBXj66gaVf9Nr8pclZmXRcENDDx4eq9SAy6cskYkClm7Lq48hs3zDP 7kvX8QkTfBS60xy/XDl6Pno65+6bdH/8ppXZR3/c8bXwxVb00BFwCpW3yWb8U+NsEgz yCvN3sonoCvfUgRgm/4ziUF+L5dxdn1pmWcdNc54= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1709968108982550.5370021636259; Fri, 8 Mar 2024 23:08:28 -0800 (PST) Date: Sat, 09 Mar 2024 08:08:28 +0100 From: Matt To: "Ihor Radchenko" Cc: "emacs-orgmode" Message-ID: <18e220aad9d.ddd6245f2410492.1077254202219187330@excalamus.com> In-Reply-To: <87zfv9hy2h.fsf@localhost> References: <18e158981f3.f22980741623238.5132641315390000744@excalamus.com> <87zfv9hy2h.fsf@localhost> Subject: Re: [BUG] ob-shell async incorrect table and value results MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail Received-SPF: pass client-ip=136.143.188.112; envelope-from=matt@excalamus.com; helo=sender4-pp-f112.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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -10.08 X-Spam-Score: -10.08 X-Migadu-Queue-Id: C620F40F9A X-Migadu-Scanner: mx13.migadu.com X-TUID: pku7U1tnMTCU ---- On Fri, 08 Mar 2024 10:25:09 +0100 Ihor Radchenko wrote ---=20 > Confirmed. > This is because `ob-shell-async-chunk-callback' never returns a list. >=20 > In `org-babel-sh-evaluate', there is a part that is responsible for > detecting the result type: >=20 > (when (and results value-is-exit-status) > (setq results (car (reverse (split-string results "\n" t))))) > (when results > (let ((result-params (cdr (assq :result-params params)))) > (org-babel-result-cond result-params > results > (let ((tmp-file (org-babel-temp-file "sh-"))) > (with-temp-file tmp-file (insert results)) > (org-babel-import-elisp-from-file tmp-file))))) >=20 > This part is skipped for :async results. =20 Thanks for looking at it. I'm still working on "[BUG] Prompt appears in as= ync shell results" (https://list.orgmode.org/18dbc1f273c.11687295c1395973.3= 345700621594100711@excalamus.com/T/#u) and will circle back to this when th= at's done. -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org development at=C2=A0https://liberapay.com/org-mode