From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp1.migadu.com ([2001:41d0:303:e224::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms13.migadu.com with LMTPS
	id eD72Lzhhb2a2eQAA62LTzQ:P1
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 16 Jun 2024 22:03:37 +0000
Received: from aspmx1.migadu.com ([2001:41d0:303:e224::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp1.migadu.com with LMTPS
	id eD72Lzhhb2a2eQAA62LTzQ
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Mon, 17 Jun 2024 00:03:36 +0200
X-Envelope-To: larch@yhetil.org
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20230601 header.b=doRZrHb+;
	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"
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718575416; a=rsa-sha256; cv=none;
	b=DejL6hsglx4ANSfeRSC4IdSO2+wffDOe5z2fCe4YKaAuLFSkrPUP9XFn/1y9cRERd1zAzI
	oI4DT9JkJNMx5vJ70K9zIqEB3MvRUMZTZQv3jg4QWb8a6bxUj4MYcID0OZPbOP28WJ3DJw
	2iq0LWOCMI4r6yGfDdQppIeGkTFlI+PYMmvgxGJOeTA5eMns+AWJANJxo6ZhX7vG+Td7uM
	+VuXCxX/g7JKfzeVuWzuJUdOfOkVu+0okNZUeUZzRD7zvaH416U0R8nYFpmwdb/CjvNBKW
	S3Cs+ywZd6ajNhmvWCl8OVqF0fDgveU2OqJz692dxrjA/zt5exxpCH0JxsJXtQ==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20230601 header.b=doRZrHb+;
	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"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1718575416;
	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=Q4J/Ecb3yOWLsvdLlvdryEhh8ioXRXuI2gWzY27FuTg=;
	b=fbxMGd4nxUxH9S6bDXdZfssauXYg3iOKTEZbgUJUpzNvG/WbbmdazUMkM2zeqX2Q1emjPw
	zriKA+P/pEFaSaJ1KLgYyaCBHlIMRlRgb6ITTOr6x1WcQVAyAbmKngx86lGkITuCpIxTNw
	HofK+cFrxcNk8Npn6Cl39Rphk0R2DavBkVYy1WCNCLDH7xkaw/LaA/lsDNy2s04X90vSz1
	dL0TKjABU10FShTmV5qpl80/63+ibhn79h2M56xzsjpcAajcgDYm0V2bZRv/WPZdW4DHIy
	Fl8iSc+8fHTWAaAhWL81Ic4o6qUZlD5gFPwOCNQ1EYdgUh702vV/eO3pK0I1YA==
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 830AB1B4B8
	for <larch@yhetil.org>; Mon, 17 Jun 2024 00:03:36 +0200 (CEST)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces@gnu.org>)
	id 1sIxxW-0002Fh-OR; Sun, 16 Jun 2024 18:02:46 -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 <suhailsingh247@gmail.com>)
 id 1sIxxV-0002FT-Hs
 for emacs-orgmode@gnu.org; Sun, 16 Jun 2024 18:02:45 -0400
Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <suhailsingh247@gmail.com>)
 id 1sIxxT-0003tW-QR
 for emacs-orgmode@gnu.org; Sun, 16 Jun 2024 18:02:45 -0400
Received: by mail-qk1-x742.google.com with SMTP id
 af79cd13be357-7955258420dso6204885a.0
 for <emacs-orgmode@gnu.org>; Sun, 16 Jun 2024 15:02:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1718575362; x=1719180162; darn=gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=Q4J/Ecb3yOWLsvdLlvdryEhh8ioXRXuI2gWzY27FuTg=;
 b=doRZrHb+nWiklQVnvAbSFVpAAOosmrqNsgTqURva6FCkLZyjfPMa2u4VGwynUh6WEP
 N0j4XQN125Mb8xDnld/iyEhnRfCPICllZEdiHs5x8DBE86WfOHMmmbvrjwWRvSzldcjV
 MgjIolQty7/WrbfcPrL0yWVZ7mvPF1R5X58gMQI5AoL4brTHe5BBU7f8O1ShUMB4jpc0
 6WvJjBVo4SGv9Pktjgte7zDrs1KWnEvVWlOWOif9L5zfwljbrREyL+5Zh2dkPscp1TmO
 L3VcWTqhSLJCEiNHO2GnFq7uYc67Mg3LwCwwh1YilVJgrfUKH/C2J8EOW5TWGnGUiSra
 5OMA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1718575362; x=1719180162;
 h=mime-version:user-agent: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=Q4J/Ecb3yOWLsvdLlvdryEhh8ioXRXuI2gWzY27FuTg=;
 b=UehNW/zyySImzL2ts0C2AN+stKJVIu360spL9iXIbMqJJfQcybVMu+viBBcRj1zfo2
 +iwXCIT+/WnLGELppqgHIpBECx3CvlRdKeiycvAsszYKJv+0R7NRVG3HUPDb0j4drDfN
 uoB5ya2scvd8WK57M7UFU6/P5wWKzCNu5a86B2OpBanVcYfaMwUm2PThD0RtHPAUSp03
 LhW7XHkOCfwuWcq83+q6DqAcPsLLk2v17wq5gTNr/H5rkvnugtaPmvmCDLxiLab6/zBD
 1cVFhntl9JEOpYr4dwvA1pLAnzLlk8hUH9Yn81bvNjgBSp7X2jzKzjUxERWaz9u3t6at
 +OyQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCX6KAE5xyr5h9gTGWhKOWoItDRYD5e1Hrix++B9Nb7cOdM/mHYpza3JFrL1MRQOxmy40KMRVmQkYXfIFqeEODgYiaHdgFk=
X-Gm-Message-State: AOJu0YwflyvAB6GH7bLCy2mXtq9oKhBxW/7vDV1m9PhdnYHK1Npl8gTF
 U5FGgjZAHnhO04pC2fopRR7KgF58CiFMRDSK6+b2ls/M2K/dDSAf1pqZY7Ek+Rg=
X-Google-Smtp-Source: AGHT+IEWwR3P8W4kxPZiKV4nK/wNxOK+Mpx6JH5cdqEX/MX1kkRIlUSkOg0Z1yKAXy6o5HosOob14A==
X-Received: by 2002:a05:620a:6402:b0:798:d1b1:f875 with SMTP id
 af79cd13be357-798d26a8016mr928576585a.5.1718575362367; 
 Sun, 16 Jun 2024 15:02:42 -0700 (PDT)
Received: from gnus (static-198-54-132-177.cust.tzulo.com. [198.54.132.177])
 by smtp.gmail.com with ESMTPSA id
 af79cd13be357-79a43fe24dasm137654685a.101.2024.06.16.15.02.41
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 16 Jun 2024 15:02:41 -0700 (PDT)
From: Suhail Singh <suhailsingh247@gmail.com>
To: Matt <matt@excalamus.com>
Cc: "Suhail Singh" <suhailsingh247@gmail.com>,  "Org mailing list"
 <emacs-orgmode@gnu.org>
Subject: Re: ob-shell: async support in "shell" vs "bash"
In-Reply-To: <19022520f63.acdaef901507354.6362811776086159414@excalamus.com>
 (matt@excalamus.com's message of "Sun, 16 Jun 2024 20:32:01 +0200")
References: <87h6e134sp.fsf@gmail.com>
 <19022520f63.acdaef901507354.6362811776086159414@excalamus.com>
Date: Sun, 16 Jun 2024 18:02:41 -0400
Message-ID: <87frtczgu6.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2607:f8b0:4864:20::742;
 envelope-from=suhailsingh247@gmail.com; helo=mail-qk1-x742.google.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 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,
 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." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=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: -9.69
X-Migadu-Scanner: mx12.migadu.com
X-Spam-Score: -9.69
X-Migadu-Queue-Id: 830AB1B4B8
X-TUID: QBKKs291PhRc

Matt <matt@excalamus.com> writes:

> :async should work for all shell types.

Thank you for confirming the expected behaviour.

> Are you finding that it's not?

No.  However, on language-specific shell code blocks (e.g. "bash")
org-lint reports warnings.

> Regarding org-babel-header-args, "org-babel-header-args:shell" is
> explicitly set to '((async . ((yes no)))), it seems, to quiet the
> linter

Indeed, it does.  For "shell" source blocks, but not for specific
language blocks such as "bash".

> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=40d1352b

I believe there's a bug in that commit.  Specifically, the commit
message states:

#+begin_quote
  Propagate base `org-babel-header-args:shell'
  to`org-babel-header-args:<shell-name>'.
#+end_quote

However, the code initializes org-babel-header-args:<shell-name> to nil,
instead.

> For other languages, such as "org-babel-header-args:bash", it's set to
> nil.  AFAICT, what you see are simply the default values.

Indeed.  It seems to me that the appropriate default for
org-babel-header-args:<shell-name> should be the same as that for
org-babel-header-args:shell , yet it's not.

> I'm curious, what caused you to notice this inconsistency?

Org-lint (in my specific case, I have it configured to run on save via
flycheck).

-- 
Suhail