From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id SE4yCqST2GVcFgAAqHPOHw:P1 (envelope-from ) for ; Fri, 23 Feb 2024 13:46:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id SE4yCqST2GVcFgAAqHPOHw (envelope-from ) for ; Fri, 23 Feb 2024 13:46:28 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GcRRQ8+L; 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=1708692388; 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=wKKXA4MY4f9GtB1Yc1yTH/mcKU+Oj5r2xU3KQar7Ldo=; b=owh3fpU1Kv9D1WcpqxDIMnfX0zI2XXsA86C3v0auO/QevHlnrS+Ec2qgVxCu6wQ7HIUINi xDKfTp70bs8FBUjur/PpzJPFFFA+z3pO1pIfoN2ohUat+FdvE0aePvmYx1MLH8IUNXKg9B 8b6sKWsRGChtWkI+6lEhmGqc8lyR7ukO10WMfp72Tp3+AuHaRDzppH5T/E/Fb0d4vfkSyP YDYou82hjnul2PM88MzFpZoWLq0iyTwOSoJC5Uz+emZ7uwW5qOmq+cLtFCLgNrWcZhNW2u lSv3rrh1q6HNXu+vArkrWGrc409i3V9k/0glRQbX7PWXUEleAE3lOhJJtYrVhw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GcRRQ8+L; 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=1708692388; a=rsa-sha256; cv=none; b=ArKweOG5APC14rnOVOJmNmkecx8bGCY2glAL9ndbooeGBHNtkaMHz1apaHdkCYH8XXpiYE /hBu02nYGp32INmXd1mCf/jyfvh/i0N75z0f0V7i5CxdKP5+OgYQJxr79xSaSA5ncDdA90 xwuwkm0Omr/R75bFrDuHy3zqFjO6z8gN4pXnm5LymJhmwPTcyujptCvBKfkemYp761nvOa xpELq6poN+KRpFcHH2RMS8wgod5TbT0BUSPu8atJIV4Bhq1iSnXw8TVqOgW3Cs5qKW1uGR k9JlJTBSEfLJgd29QOlyjqZXGK8eAnO2aQccP93qFtNTCaf1AseK9snWfdxmiA== 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 E6E7D245F4 for ; Fri, 23 Feb 2024 13:46:27 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdUvp-0002qS-Rl; Fri, 23 Feb 2024 07:45:37 -0500 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 1rdUtW-0008B4-8X for emacs-orgmode@gnu.org; Fri, 23 Feb 2024 07:43:14 -0500 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 1rdUtT-0003oI-DY for emacs-orgmode@gnu.org; Fri, 23 Feb 2024 07:43:14 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id EEDB1240103 for ; Fri, 23 Feb 2024 13:43:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1708692188; bh=VlFHwUet+YH1AG6bSnG+VBDfFbGk+Fwcu0kXvZ8v3mo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=GcRRQ8+LbSboHuTOukBbpVDHCUGgoky29MLTBV7+2ZKsoewTL/BxRoAlLvQrlXg1D GbQ219Qs8C3uv2fHmcGO3Aqj4ctO0gF6h/D3TkbjyWOFWyBpAxwDt/ePagVlLKRG94 qQZ1jMQgIfHc1QkybUn1I6cmvu1R2jDF+6+D0TYL9BQL7iA9yfEjy0YlYa8mGDHbns x8l3gAwnuY3xIl32ioojA9j47TTMgmbvMoesgtpUfyUsG+2aUMDntVlStNVABIKLaV 3W4MgwdDPujAfIi3J1/H6hzNuKNa465Iz3nQxRKFb1fO2z7ZOjWX/gQl60aYHac6xH O4bVj9K8q8QRg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Th8n66P0kz6trs; Fri, 23 Feb 2024 13:43:06 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: Martin =?utf-8?Q?Edstr=C3=B6m?= , emacs-orgmode@gnu.org Subject: Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command In-Reply-To: References: <87wmr1rc2w.fsf@localhost> Date: Fri, 23 Feb 2024 12:46:51 +0000 Message-ID: <874jdzjqkk.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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, 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." 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-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.09 X-Spam-Score: -6.09 X-Migadu-Queue-Id: E6E7D245F4 X-TUID: 5MbcURkh7XXl Max Nikulin writes: > On 19/02/2024 02:36, Martin Edstr=C3=B6m wrote: >> +Since this is a shell-command, remember to use single-quotes >> +around \\=3D'%i\\=3D', not double-quotes! Else a math fragment such >> +as \"$y =3D 200$\" gets butchered into only \" =3D 200\"." > > I am afraid, the code, not the docstring must be fixed. I have not tried= =20 > it, but I expect an issue with > > Test \(f' =3D df/dx\) > > So `shell-quote-argument' is necessary and quotes around %i must be=20 > stripped similar to %s in mailcap entries in `org-open-file'. That would be backwards-incompatible. What about introducing %e replacement that will be shell-escaped? --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at