From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id KM4zEqeAMmbdsAAA62LTzQ:P1 (envelope-from ) for ; Wed, 01 May 2024 19:49:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id KM4zEqeAMmbdsAAA62LTzQ (envelope-from ) for ; Wed, 01 May 2024 19:49:27 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=N9s9a+eC; 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=1714585767; 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=WGmr2/k8OekuQ+gtyclsSf1HCvXmeCkbDSjA1bTGTwE=; b=H5Q2GodZsn2o3t5ltxsvIpxas0sKDEQ3Er4H1dDw5AHJco+Aea9Yz3nFBmst6m+lE5i9G9 774LdisWkkilOK4DK5X/dEU1AUMQ6jSj7kt+ZFB7E02G2gIREdI2aZJxV3OyQmXpjB72gk BDLDA4trhN0r5E7JPGjm8SWqi8ZrNW1QblQQdUaFZdK5suaWgLZst2kKuoZ/8axOIh6NuI +TSoHTy4DsL+Dsm9Ls8m9tM8Y+horbCuDh2aIiLa9Z5IyzsgPSMmyXEAWuX/FPKZdkUB4I s4uz/WuvqimGq4blCVh4m9ABjnbO5FTRj/0NP7ehG0ePbsXgfi6WD2d4bxEJUQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=N9s9a+eC; 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=1714585767; a=rsa-sha256; cv=pass; b=CtmsAX/MXHSOmVAP5GR5kKE4MT3hJzJXX7WeL04sWcCGYwHMGdlvsd1F11rGy+P0YNfiDf L5zLGMKZvGir7pmSGHBBP/VlL0AyyH6WlhoCa9MI2BPY2uHf/0yoiWEXeA5RvuX8JP/6zS 54ArKxrfgrQIxxOfeHMXmLT5VxUUMfSYpgLv1YyplPzM17NDOADqRbMEoXLTBuJH1gSx6V F/c8ogtdvsDoIB4NlKC6T5cwTs5jjtSAKZBkRReQVxWsZia5aH4nfU8HlahFFswvFVRMp1 2+3VrU3VorWJMCmHNE72uUJ9Ig08xuKaXYHPptJBmZIV6byOzfTQ+o8rLdw8Zg== 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 27237749A1 for ; Wed, 1 May 2024 19:49:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2E4I-0005w0-8e; Wed, 01 May 2024 13:48:34 -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 1s2E4H-0005vX-1M for emacs-orgmode@gnu.org; Wed, 01 May 2024 13:48:33 -0400 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 1s2E4F-0004ia-8D for emacs-orgmode@gnu.org; Wed, 01 May 2024 13:48:32 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1714585703; cv=none; d=zohomail.com; s=zohoarc; b=djeMKuja9YZTCckyyUXYmyT4rtZZzKF++Bfn+KxybnIjUl7drurQNr4rm1+E4/LrAv8BNAC7eRRACVr+kCWdl2ifIWiMdAinNqnlfaC4GiYJbS7n/TmlIRYPZucoztRtNZ/svHKUPnfDvJjagBBvjTGtmhfBN59vEFBDJ2GoyOQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1714585703; 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=WGmr2/k8OekuQ+gtyclsSf1HCvXmeCkbDSjA1bTGTwE=; b=N+c+QDs/Ck4TPEidDopRH9w9XavDL/J42PwyLSuqJbuVL3A+WuqCIXbFrRjdsYx9cJEGlL8ALZoM78EMzPaFL4txaqvpqobnA3qragOEeeHGIaCmBN5YixwvtEe8oJ5K0PH8gxquzXq3tykHEx8jR38zhpFR+iGPK9QpSYGHPKU= 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=1714585703; 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=WGmr2/k8OekuQ+gtyclsSf1HCvXmeCkbDSjA1bTGTwE=; b=N9s9a+eCyYQNUwKa+rWxRYQIsqojZbXm2G/70Ly4UBGz9vdPnb/scPa/jWigR+eK jlfqana+UlnV4rXgivl2+JLqa9pG4St9XaXkcZ/3YeD8F/7eTobVwR/cdYA7hvuGCep gpsUibu88/n8kJBOf+uoG2mcjIXRR1p/Zyay57hI= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1714585701854928.9575575791754; Wed, 1 May 2024 10:48:21 -0700 (PDT) Date: Wed, 01 May 2024 19:48:21 +0200 From: Matt To: "Ihor Radchenko" Cc: "Max Nikulin" , "emacs-orgmode" Message-ID: <18f35458dc1.12b1098e95744256.2240855810530845420@excalamus.com> In-Reply-To: <874jbkcmyg.fsf@localhost> References: <18f01342a2f.124ad27612732529.8693431365849276517@excalamus.com> <871q6suv7z.fsf@localhost> <874jbkcmyg.fsf@localhost> Subject: Re: [DISCUSSION] The meaning of :cmdline header argument across babel backends 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 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -10.36 X-Migadu-Queue-Id: 27237749A1 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -10.36 X-TUID: +JYexVNZp1bF ---- On Sat, 27 Apr 2024 12:53:25 +0200 Max Nikulin wrote ---=20 > On 26/04/2024 20:09, Ihor Radchenko wrote: > > Max Nikulin writes: > >=20 > >> However looking wider, I do not like that :cmdline for ob-shell has > >> different meaning than for other languages, see e.g. ob-sql. Only for > >> shell this parameter is treated as arguments of a *script*. In other > >> cases :cmdline is used to specify arguments of *interpreter* and I th= ink > >> ob-shell should follow this convention. > >=20 > > Alas, we already have the current state of affairs documented in > > https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-shell.html= #orge70bc7b > >=20 > > So, no breaking changes. Both points are valid. I disagree with one aspect: we shouldn't use Worg as a source of truth. Th= e argument holds based on historical behavior of :cmdline. AFAIU, Worg is = a wiki which is open, more or less, to anyone. Worg contents, AFAIU, have = not always undergone review. The manual should be the final authority. Fo= rtunately, there's nothing in the manual about :cmdline. ---- On Mon, 29 Apr 2024 15:33:38 +0200 Ihor Radchenko wrote ---=20 > I like :script-args. + 1 > The counterpart should then be :interpreter-args? Are we thinking of implementing these for other languages, beyond ob-shell?= If not, I believe we should consider it. That may be a path to resolve = the issues of consistency and backwards compatibility. If we're looking at these as general headers, then I don't think "arg" is t= he correct term here since a switch may not take a value. For example, th= e "-r" option for Bash (IIUC). Quick name ideas that aren't good yet may inspire better ones by inspiring = disgust--:switches, :flags, :options, (using an "i" prefix for "interpreter= ") :iswitches, :iflags, :ioptions -- 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