From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id qAxjH+9OLmbvHwEA62LTzQ:P1 (envelope-from ) for ; Sun, 28 Apr 2024 15:28:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id qAxjH+9OLmbvHwEA62LTzQ (envelope-from ) for ; Sun, 28 Apr 2024 15:28:15 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=Z6AF9FKa; 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=1714310895; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=zeLj2+KBdrWBk0xeWKECOAx/WFa31BJtsAZ+eEAFnw0=; b=nkYV06qFceHllgCYctBjm7J/6ii/PUySHMrunuh6LDHmNaMYnJS/T0ehoaLYWcnh1CR3rX O1U1mJklajQ6h6mRuWv0nAhPkcC0pc/mWOslwAu/LvGLM4KZv811uuWgUXtB5PDH0r0zjh ARTztXXRJ5MVl68OW2SMvK7bkULus6KOD5QsG/UdWkZA01mhSHZqWOnTX3guGN+FZwbwi1 mD8SM3fU1EAOEk04Y5wdmBqPkazPbTrk1z0R6EcOXRzsvHI2YmzpWyGFwWHD9bLYKtiEhB lpZ/uWWHGvZ8n/Pc1mgHzINJmGDQ78+cdUZJJ+N4743Y1nkKhHTPwiWE3tvQbQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=excalamus.com header.s=zmail header.b=Z6AF9FKa; 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=1714310895; a=rsa-sha256; cv=pass; b=uMhWS+HqIeqQtOvYxfBYyoMTx3If+Yvz1qd/evzivn1tobpGJkP65etxsR0enJmgMsplz4 vRV3jEHQlopw1MPdyZlUiOAWuj2GpTGut5ET2AUpm7qNXnp7YjNpju3XBS2IHXUu63XXwb gKYNP181df+q5frP2O2TsPRhlpD+MsN97uvz1FDhXNSllyxh2NEKvKjz3fyE9SV5S9gYtT Au+4oT7wvBk7ZWyTHzkU3niibe39rMbr9Bs/78+e7mhlVqYMIWFvQAbm/F2d1rpbaZoLVR KMvt5f/oQtNN/29ynQGFCWxLu5vW9nbRdPb9PoGlKdv96h78an7gyCr9TSFu9g== 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 6E31953C12 for ; Sun, 28 Apr 2024 15:28:15 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s14Z8-00078v-00; Sun, 28 Apr 2024 09:27:38 -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 1s14Z6-000789-Ha for emacs-orgmode@gnu.org; Sun, 28 Apr 2024 09:27:36 -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 1s14Z1-0001Vm-DZ for emacs-orgmode@gnu.org; Sun, 28 Apr 2024 09:27:33 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1714310847; cv=none; d=zohomail.com; s=zohoarc; b=AAu913Yji5k3fDkcfmcNpaYVLxb36GZOj9YyLKEtvHKyNa0rOSPwuUkHOR83nNmGEAVf7Rpa9qPhjatNZnmMo9i1EGjAMAkboeSstKYixJ9uHIsPHu5tV7MYHgdlgkNeph9Hmp/Jh2EHky77m1dtr/iv7aoVGR9q7jRGTz4I+7Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1714310847; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=zeLj2+KBdrWBk0xeWKECOAx/WFa31BJtsAZ+eEAFnw0=; b=X1AWQZPwV/2htE3QeYhWVjxicAizzaauzDDTzAP1j7m/f1pIrZzuUtGh3fH2ceGw9xjjdirFI+hQ/RHvDzReZuUs8Vm6EGfnF6PD/6AQInRGa5hScVufVfWNR0wFp6VCiyf2NzsxXkPky0W11t6QwFUcreE4S1WHAHocYfhxU9c= 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=1714310847; s=zmail; d=excalamus.com; i=matt@excalamus.com; h=Date:Date:From:From:To:To:Message-ID:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To:Cc; bh=zeLj2+KBdrWBk0xeWKECOAx/WFa31BJtsAZ+eEAFnw0=; b=Z6AF9FKaSn9K4fJQFBdOJpcnjms84p9pL5Yz396XjE7tGUOWbJ+5gw9BGXs8eC2t +ZqfwcMJsWNselvdPIUKAF5tPaXv7zHFiCyV3Dn/ZDETn5+IIlTGhcjULEJU6Cp9hMe /x/AyYUy9U/MQPaaAz/GWPHq9G9okx06F8L4297Y= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1714310845634265.9891591082369; Sun, 28 Apr 2024 06:27:25 -0700 (PDT) Date: Sun, 28 Apr 2024 15:27:25 +0200 From: Matt To: "emacs-orgmode" Message-ID: <18f24e394a9.cf358fba4744433.3814984878900155603@excalamus.com> Subject: [BUG] ob-shell: internal representation of cmdline arguments the same 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.01, RCVD_IN_MSPIKE_WL=-0.01, 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: -8.74 X-Spam-Score: -8.74 X-Migadu-Queue-Id: 6E31953C12 X-Migadu-Scanner: mx13.migadu.com X-TUID: w3eJsj62idaB While investigating "[BUG] ob-shell: :shebang changes interpretation of :cm= dline" (https://list.orgmode.org/orgmode/18f01342a2f.124ad27612732529.86934= 31365849276517@excalamus.com/), it was observed that :cmdline 1 2 3 behaves= like :cmdline "1 2 3" The first argument is the first space delimited character following ":cmdli= ne": #+begin_src bash :cmdline 1 2 3 echo "$1" #+end_src #+RESULTS: : 1 The following makes it seem like command-line arguments may be grouped usin= g quotes: #+begin_src bash :cmdline "1 2" 3 echo "$1" #+end_src #+RESULTS: : 1 2 The following demonstrates that quotes do not always indicate separate argu= ments: #+begin_src bash :cmdline "1 2 3"=20 echo "$1" #+end_src #+RESULTS: : 1 It was stated that, #+begin_quote AFAICT, it's due to how headers are parsed by 'org-babel-parse-header-argum= ents' using 'org-babel-read'. The cell "\"1 2 3\"" (corresponding to :cmdli= ne "1 2 3") is reduced through 'string-match' to "1 2 3". The cell "1 2 3" = (corresponding to :cmdline 1 2 3), on the other hand, passes through. The r= esult is that :cmdline "1 2 3" and :cmdline 1 2 3 become indistinguishable. #+end_quote Org mode version 9.7-pre (release_9.6.27-1393-ge0f24a @ /home/ahab/Projects= /org-mode/lisp/), commit e0f24a3f6 -- 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