From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id kLGNF+O38WVe2QAAe85BDQ:P1 (envelope-from ) for ; Wed, 13 Mar 2024 15:27:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id kLGNF+O38WVe2QAAe85BDQ (envelope-from ) for ; Wed, 13 Mar 2024 15:27:47 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; 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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710340067; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=bp0h+jiGc1kIug8+RACnqlMQb0Rh3uDgtpcm0p2hNzE=; b=WFzDekt6nMdejllSEOGqyBPnhzgUQJefBmNdseYR6Nxgvtrs+Ivj3UCdXZZ6ZPsY/6aHe4 n3o38+4lqzcxRxQTuYfOkH9mhjCWy6geddfaMpmjMsqP19keLjzn1QmjuEUX8TuWAW41He 58aQ6RuMCLZ8wrgC/bGMhoAZk0DkDXeuF0unO180YNFNHik4wna8NHpEdnBYYGdv/IEjiA esrgUH/oq4WSxV9tbeU+LdrcAmldBJIgq7BTyjk8L/Ky+yATAvSgGu8Sjy84t1va5nosjw Codx9JWX6Bv78XKiZ0aFq3t5kLH54yi2zTZOMZLa/gyP8GfWDjJKCuhKRXezfA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710340067; a=rsa-sha256; cv=none; b=Wm5F012blreBYNknATsYzZ1b0fF701rKMaN5TnNvLnRRV2a533B6XW7La4jjy28dSx1hd4 ma+obH7673TX7ucuoyTz7KFO/Q/myv1TBI3sSeVPJhyhN+mlm1F99c6z6c3v1QSd0Yeb82 dEIF4mh/Qrk5PpxQgQjdXv29KV+WA2xTbOeVws8ON3BtqpufXn8u7kfDiV4Zlnngbhh+/b IF3HqtCy659apThgyfLgCHvieNeJU+9j2idyNS67udZHA15SrrrPl/1rPxu+Uoss5AmInE t+/f4KsWVy/6Z7REb8Ioz62DwqXeBddSn+6Jlf2uNnTTYzARO40T8IIvwY2vXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none) 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 2022C3B08A for ; Wed, 13 Mar 2024 15:27:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rkPZq-0005Y3-S9; Wed, 13 Mar 2024 10:27:30 -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 1rkPZp-0005Xl-Db for emacs-orgmode@gnu.org; Wed, 13 Mar 2024 10:27:29 -0400 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rkPZn-0003uE-Ka for emacs-orgmode@gnu.org; Wed, 13 Mar 2024 10:27:29 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1rkPZl-0006N3-Nw for emacs-orgmode@gnu.org; Wed, 13 Mar 2024 15:27:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command Date: Wed, 13 Mar 2024 21:27:16 +0700 Message-ID: References: <87wmr1rc2w.fsf@localhost> <874jdzjqkk.fsf@localhost> <6e49c590-ad27-4fb0-b1f2-6a89c60a0b58@gmail.com> <87msrncxhq.fsf@localhost> <735645dd-1ddf-4579-a6dd-2700f3e83c94@gmail.com> <87jzmdht2w.fsf@localhost> <87v85rd2m2.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla Thunderbird Content-Language: en-US, ru-RU In-Reply-To: <87v85rd2m2.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 26 X-Spam_score: 2.6 X-Spam_bar: ++ X-Spam_report: (2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: -5.68 X-Spam-Score: -5.68 X-Migadu-Queue-Id: 2022C3B08A X-Migadu-Scanner: mx11.migadu.com X-TUID: HFkI1/46tzoR On 12/03/2024 20:03, Ihor Radchenko wrote: > Max Nikulin writes: >> It is trivial to cause shell failure when single quotes are used around >> %i. I am in doubts concerning double quotes. Perhaps stripping them is >> more reliable. > > May you list the cases to you propose to recognize? Sun, 25 Feb 2024 17:41:43 +0700 https://list.orgmode.org/6e49c590-ad27-4fb0-b1f2-6a89c60a0b58@gmail.com - '%i' and "%i" in any position including e.g. --option='%i' and protocol:"%i" - 'something%i' and "something%i" surrounded by spaces or at the end of command but with no spaces in "something". It should be applied to %%%i, but not to %%i. >> - I would explicitly stress that quotes causes undefined or even >> dangerous behavior. See e.g. the last paragraph >> https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s07.html > > In ORG-NEWS? Since quotes were recommended in the manual and the docscring, it is better to say there that they lead to undefined behavior. ORG-NEWS is to make the change visible for those who have read docs earlier. >> - I expected it as bugfix. > > It is a breaking change. > Also, only users who customized the variable may be prone to unexpected > shell expansion. So, I do not see it as a critical bug. > Hence, not for bugfix. I am still in doubts. I have no idea how much users need ODT export with math and rely on the backend shipped with Org. All of them have to customize the user option and those who added %i with quotes have risk to get incorrect output. If quotes around %i are stripped then the change is not breaking one for most of them. >> Moreover, it >> does not work in a container where git is not installed: >> ... >> Debugger entered--Lisp error: (file-missing "Searching for program" "No >> such file or directory" "git") > > with emacs -Q? emacs -Q --batch --eval '(find-file-noselect "not-found.txt" t)' Starting new Ispell process ispell with default dictionary... \ Error enabling Flyspell mode: (Searching for program No such file or directory ispell) Error: (file-missing "Searching for program" "No such file or directory" "git") Emacs-28.2 ispell error is due to my .dir-locals-2.el (text-mode . ((mode . flyspell))) bug to get the git error it is enough to create .git subdirectory.