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 IP4KMTYo9GXiiwAAqHPOHw:P1 (envelope-from ) for ; Fri, 15 Mar 2024 11:51:35 +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 IP4KMTYo9GXiiwAAqHPOHw (envelope-from ) for ; Fri, 15 Mar 2024 11:51:34 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="H/YsIMcs"; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710499894; a=rsa-sha256; cv=none; b=JBbO2Sjq31AJqqVjqhcaBg/fIsQx1oNuhSHUwjH4v3+jKY590GzOwVnWdbo5ydvixTjABF a8oQpjA95CORSW8Ji62qZ2c5v+nxvz/lqvWGNrxUDUFXzUqisSH7if6tJchDhlNTBDY3pu /ImIpI35DHf6zE3b4CtT6R990KdvbPswdToQaiCvtOry040Doe1UVtooJvS/qhD9nY88/E 9VyibDTWZ+BaVVZQslfHjov7PHw4Q3g49v2wUwjwXmSQPgpKd/nrEzNjY5yTsi0ip2o2Fx xfFJkdDLMsZOwMLpxCxNb7sjgtPiriTVC5sRDYsGaKB1yuRkhq19VGZejH8vzA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="H/YsIMcs"; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710499894; 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=Y5DqqgkNoVQ6K39SD3NYDBwb8Fx7JJZbofFACIVCN7A=; b=hVy+EVnm1n05M8SHmhOtNdEjAl64yiW76WS5qkndoFEvSPFNKTAvaVBjkpbolQgx5ewQ6w YuJdvpvY5Mw3FB5u64AMQ4ddM8Cq8cMdOWY3cg8OkV5/UhOG2YYdt+pv4MSQ71WI9J3BTM UbZzPuvzMzj/M9AUVW3qqHSqwLKfgfDbVxJvfbacgtkpuk12ZvUI5pizF4T6r/WQ4VKo7H CXwNDosDzCS9z3POZ3R1TqXzbgN40sSWso7KQO2bjcza5gq/YBl0CMSTPGbH+cck01qZWl t2wCeVR9yCOPqgT4cRYP5updrnwyFOWviN89rcyFBIZICtaCIpmADWZFRc9F+g== 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 8DC3B21C93 for ; Fri, 15 Mar 2024 11:51:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rl58D-0008P8-8d; Fri, 15 Mar 2024 06:49:45 -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 1rl58A-0008OD-W8 for emacs-orgmode@gnu.org; Fri, 15 Mar 2024 06:49:43 -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 1rl588-0001zk-Nz for emacs-orgmode@gnu.org; Fri, 15 Mar 2024 06:49:42 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A5720240028 for ; Fri, 15 Mar 2024 11:49:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1710499778; bh=96/vRXghcGzVf14PzBNaKeR6URKChYMPQWgOvpmz90g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=H/YsIMcsarusJ1QNb8FlhEJOlKctc7Jf+RTGtJesHK67nYimtOCn7oK/gZaVT2Yxt xEfTwNxiZg81CVOlUCwuq2m0vQRkl8MUXXiwdTJoAucY6uib3gSho97FZIbvb8hhWm +zjcFd4HoHzECtTD+NRh4HgJGtfEV0kBZAd1rSgstxRptYmBaKxhjr9FRCo3n9PQ74 Pak6ltC0HyJ/6V44TKEE30H3DEhiP5mfzvWG8sBuKJhw850C5zofWGYqwce+hdNgLL OAi4Jdnwc3AxSZx8SbkruIv1xazm3UoGRoXpbkUFnIJt1/8efcDqVlA9YNQ99sWgtV ZXOGRn86l2W1w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Tx1GT4mvpz9rxK; Fri, 15 Mar 2024 11:49:37 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: 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> <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> Date: Fri, 15 Mar 2024 13:49:19 +0000 Message-ID: <87v85nip0g.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, 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: -3.99 X-Spam-Score: -3.99 X-Migadu-Queue-Id: 8DC3B21C93 X-TUID: bTYIvhJRvXQR Max Nikulin writes: > 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". I am not confident that it will be safe. For example, consider something awkward like foo\"%ibar\". I imagine that other edge cases are possible, especially in exotic shells. > ... It should be applied to %%%i, > but not to %%i. I am not sure what you mean here. >>> - 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. It does not matter that most users will not be affected. Some users being affected is enough to not commit this to bugfix. Our policy is not to commit unsafe changes that may break existing configurations to bugfix branch. Except critical fixes. See https://orgmode.org/worg/org-maintenance.html#release-types >>> 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. This looks like Emacs bug. Likely in `vc-refresh-state'. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at