From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id aO3NIpmGTGbIewEAA41jLg (envelope-from ) for ; Tue, 21 May 2024 13:33:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 6Df2G5mGTGbengAA62LTzQ (envelope-from ) for ; Tue, 21 May 2024 13:33:45 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=aQDKyOUT; dmarc=pass (policy=none) header.from=posteo.net; 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=1716291225; 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=J66dY+fTV7HUszvVYkNuPdwrLYtXRjwmnh91WuV3wYk=; b=F5wRTiFQlUrkjbS17ALfRJ5C5Lci5ilOjgQWogSppagKZf/DTu4ZZUDwDmvfIT3tMR1srT 6pMUbuG4QuWDu2Dlv6wbVHVnzTs7Tr7jM99Kbcz0qIcBPJCKqaQ4GvCPtClikLJg3IjSCf EjaUNUwtGKRfTTqcwd+K1PHCcAQshggWGPvSZYxd7Zc68uZm8L0C3/nGRkBx5LjUQaE5Ta gdooWfPaiIiuNVCugDgDlm/sN0rzXs80OIu3pl0YODyZUSzKgM+dH+W78/2WG5sile2xvT kV5Dk1r4kvEth+CZD0UG3cC/4jFY7W4LwycqGLNOek0JuSndsFxZ4GFl3uDB+g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716291225; a=rsa-sha256; cv=none; b=ck6GP4fwXF9qTl+2zTmwiLvVDRkfA8ayBJyDRdEr7HhdE22rRYGSjF4dC07X37hYqaFKOM Jh0prhhBbH22r/XiJsE/85w8fsr7xhORhgqv1Ig/ogoEcUM5ZHzp4W72wZCkELgqMa6ckV GG85Q4zGWu31si8tE6/9UboUFP4+OIxJdwRGS1+cS7kNKRW98g1pbyAFhMweB3I3OOaFxw cJ1J52/TFF1dQTTYu3ddWMu4V/ghSL+lQdyaX1S31R0au5KjVn6CWrGgecMrzuWJW80/7R U0yXNAyG3EKSC5VbD0yoQls2TM0smgmktq4eKbmFf6UJ9/tcY64JVfVa5vZuiw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=aQDKyOUT; dmarc=pass (policy=none) header.from=posteo.net; 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" 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 128E6B253 for ; Tue, 21 May 2024 13:33:45 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9NjW-0006Ry-Vu; Tue, 21 May 2024 07:32:43 -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 1s9NjV-0006Ri-JG for emacs-orgmode@gnu.org; Tue, 21 May 2024 07:32:41 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9NjP-0006ub-UI for emacs-orgmode@gnu.org; Tue, 21 May 2024 07:32:41 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 43A4B240101 for ; Tue, 21 May 2024 13:32:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1716291153; bh=iwcw6wnLD2kT9h4Fb32pyasl0/l+NHwKZlMD4cgMaLQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=aQDKyOUTeBjt6xQ6nLhOfdsgv86zux7F1DqzA7M7kFm27gaJFYaN9OpcQwWYQQjkE WFKMv7oRubg3JwX93xfFATVNLN6prJLRNNx3VNVbr5Mf3fAnPK+NqK2RtT1Q1DVuBr o6ohlf1IGEvMKWFdKAyCpwtuszaPTFQXet/cpFmcXEa03Z3yVZSxU8rDTLIXs2861T jCAxf6u1L8061j0nCKJxi4ZHbAmpsIDYb33HjJHwUdYTDncDUJp5wD9pJdbcWBCU+p kZSiCtbHljxMAiF+5/PEPQtL28FeKcoiXLe6hQSDFxDdYv215VbZJW3VpqKS55h1Bx Q7iuM3wVR8ezQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VkC345Z9Fz6trs; Tue, 21 May 2024 13:32:32 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [DISCUSSION] The meaning of :cmdline header argument across babel backends In-Reply-To: References: <18f01342a2f.124ad27612732529.8693431365849276517@excalamus.com> <871q6suv7z.fsf@localhost> <874jbkcmyg.fsf@localhost> <18f35458dc1.12b1098e95744256.2240855810530845420@excalamus.com> <8734r1s96j.fsf@localhost> <18f3aa4c676.ae62768085345.7619655152678494644@excalamus.com> <87cyq3t7pw.fsf@localhost> <18f972a00dd.c7c4840b922756.4506345879697281710@excalamus.com> Date: Tue, 21 May 2024 11:34:16 +0000 Message-ID: <874jarjt53.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.57 X-Spam-Score: -6.57 X-Migadu-Queue-Id: 128E6B253 X-Migadu-Scanner: mx11.migadu.com X-TUID: 3A6QM5fNuL35 Max Nikulin writes: > Frankly speaking your plan is not clear for me. My special concern is > DWIM behavior > https://list.orgmode.org/874jbkcmyg.fsf@localhost > (Ihor Radchenko Mon, 29 Apr 2024 13:33:59 +0000) > and > > #+begin_src sh :script-args 1 ; touch /tmp/not-an-arg > > if you are going to pass it literally to "sh -c" then it is > :script-cmdline rather than :script-args. Your pathological example is not how we encourage these header arguments to be used. Their intended purpose is serving as arguments, not to complete the cmdline. Anything else is implementation details we may or may not change in future. It need not be reflected in the header argument names. So, I stand on the :*-args names. > I expect a way to explicitly specify if it is a single argument or > multiple ones > > #+begin_src sh :script-args '("a b c") > > vs. > > #+begin_src sh :script-args '("a" "b" "c") Max, I believe that we discussed this. This problem has nothing to do with introducing new header arguments. It is just a question of how we pass these header arguments to scripts. Your concerns must not stop Matt from working on the proposed patch. > As to literal command line, taking into account stripped outer quotes > issue, I do not like requirement to quote characters for shells. Even > splitting string into arguments using `read' might be better, but there > are still enough issues. I fail to see how this relates to new header arguments. > Besides interpreters, there is may be a stack of "launchers" like > toolbox in the case of applications installed as isolated flatpak/snap > packages: > > Florin Boariu to emacs-orgmode. org-ditaa woes. Thu, 19 Oct 2023 > 12:59:59 +0200. > https://list.orgmode.org/ZTEML8zWrB6kQflk@toolbox This is also out of scope of the discussed header arguments. Using custom interpreter (flapak-spawn ... bash instead of default bash) has nothing to do with script/interpreter arguments. We may (and should) discuss that question separately. Let's not raise all the possible related concerns at once, unless they cannot be resolved in future because of the discussed patch. Otherwise, it is almost impossible to make _incremental_ progress. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at