From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 uN9eIuiQL2b96gAAe85BDQ:P1 (envelope-from ) for ; Mon, 29 Apr 2024 14:22:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id uN9eIuiQL2b96gAAe85BDQ (envelope-from ) for ; Mon, 29 Apr 2024 14:22:00 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ozBjpf6k; 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=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714393320; 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=QZ+ydqhA6+1/uf39aLsuWt9Xy6QeCskOauIsw0FXhhY=; b=CkJzWjGdkMZHSR6egnReSYZb+aacZasgcOU9v/1xwXZQ3+UKSAdMS74dtzPIAMO5jT5Prp ARIsDUxWUInSlpQvgjT/uX6QReWoA2REaLpBAi/dJhBoUnEO10VejSvBmwCywGUw8F8B63 mYzPLJhGiiWgG/hQY/88egxIeODj165mWaid0vpT6KQPgFVZbGOxQQFfUcYvTZeEcZ75CE 2+TuyUVUG3po04074qgolk5GLaQ0nGrs2g1R9FelMbDYAfS/vPReiZCUmjym3zLRXGF/4y gg1mV+kFxf8Tbxt4OBcqh68Tmz3d/aiNZsUhEsnZH4Kt4hL6LIbl3mQlKMDJog== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ozBjpf6k; 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=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714393320; a=rsa-sha256; cv=none; b=aqO4uF7pfbPU5KLQVhVH++bX4F15S/t8c8H/x37WmZWDpw/v3lhD8kc9c8MSPhUrgYWe2z uMiEbEfjqfb3ADBbHA04L+EMHh+dl0BpThEyg4GA8/1JRMp9r/hSPJmPr7p5l4acvAG6g4 L/uqJzMLnGV3qAiMpoZ6+yHwKd2Wc68TYV9ZtwcxqQMXf1JgCWfhQAF5GGyxWVT4L8tt5z FyJk9tG/GlkqK4tIRJrkStPZ07d2ArhsjnCBEmWjxN6ZHoJxa9S2ze1yKDZTiDmcKUuInq TBPfAUQZjvsHra26Ir5NbprftxHiVg+SuVSEKUqHoyx/ymWwTjpzTXE9EhEk0A== 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 3DCCD766D2 for ; Mon, 29 Apr 2024 14:22:00 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s1Q0Q-0004jX-GX; Mon, 29 Apr 2024 08:21:14 -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 1s1Q0O-0004jH-C2 for emacs-orgmode@gnu.org; Mon, 29 Apr 2024 08:21:12 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s1Q0L-0000TW-3x for emacs-orgmode@gnu.org; Mon, 29 Apr 2024 08:21:12 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DEFCD240027 for ; Mon, 29 Apr 2024 14:21:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1714393266; bh=fb4LAl0TBrIYhq/cd6/3ee0KKa77LbX/PTK+ZYTJaN4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=ozBjpf6kQuVM5u0q8wZf3ARpSJmbpCxx75yEXcPNyvHRuiQtgE65oA6wQraAoNh0k oxDYI6nra2LyxjLBZdYFEjfSputpPmDxKi+SfH0HhxmQ6CvN6wq3vQsmp/4XFphIv3 fmcxVoO+u8KP+aOon3emxVQymDFYn+1dH0foxPPEUPH1r+1MrOo94jL8M53HO0Ofza 5gFu/4WZ+8cqjRsDmJCue4aP2z4Sbsb6dV12pxqDFEYhOwj3Rw92Mcillt5qnxpaVf SEnTYjOPuZkqpUyFxv2G3xuvIEiKIip4h8tjPE2jxe8xpwLPTlYhtDxop6oqx0XuqT qDJp1ylNDSk4A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VSj9G0c5Jz9rxF; Mon, 29 Apr 2024 14:21:05 +0200 (CEST) From: Ihor Radchenko To: Matt Cc: emacs-orgmode Subject: Re: [BUG] ob-shell: internal representation of cmdline arguments the same In-Reply-To: <18f24e394a9.cf358fba4744433.3814984878900155603@excalamus.com> References: <18f24e394a9.cf358fba4744433.3814984878900155603@excalamus.com> Date: Mon, 29 Apr 2024 12:22:09 +0000 Message-ID: <87frv4cqa6.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -6.68 X-Migadu-Queue-Id: 3DCCD766D2 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.68 X-TUID: KIMCzjtx7gQ8 Matt writes: > #+begin_src bash :cmdline 1 2 3 > ... > #+begin_src bash :cmdline "1 2 3" > ... > It was stated that, > > #+begin_quote > AFAICT, it's due to how headers are parsed by 'org-babel-parse-header-arguments' using 'org-babel-read'. The cell "\"1 2 3\"" (corresponding to :cmdline "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 result is that :cmdline "1 2 3" and :cmdline 1 2 3 become indistinguishable. > #+end_quote Yes, "1 2 3" and 1 2 3 are the same from the perspective of header arg parser - on purpose. The idea is to allow passing arbitrary Elisp objects are values :header-argument #("fancy" 0 1 (invisible t)) :cmdline "string object" :foo '(a b c) To force quotes in the :cmdline one can do #+begin_src bash :cmdline "\"1 2 3\"" echo "$1" #+end_src #+RESULTS: : 1 2 3 Not a bug. Canceled. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at