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 iOe3KAkO2mXD6wAAqHPOHw:P1 (envelope-from ) for ; Sat, 24 Feb 2024 16:40:57 +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 iOe3KAkO2mXD6wAAqHPOHw (envelope-from ) for ; Sat, 24 Feb 2024 16:40:57 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=XQPNWyhi; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708789257; 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:dkim-signature; bh=r7OtDz6Uu84CQSNd7Izs7NUSlOEIq6b5f8A3UNrPHF4=; b=WKEFo9U8c8eW4ZcJi1xIOYzbnRDQ3c2KfhuxnIbz7dfCXg9KQej9UGODN4xWX3Ab0ZF/2Z Qk53Pa0Gnj1h8vpCoE2qWsdaEaCGGiO+j7glMV3pDVitnhu7oqMZHJ34uzjioQNaD7bwvq ZA1pDCDasfXXSuG3KBrlesnkapkFvUdyF8qnoS/xtonTsEtGffsH0Z4WKxcxir9A/ZnKK7 N+jZcXJuiDh4vrPEpxWaasuymCVPW27UvO5tc7Fb7xBNJJTM5VsYT08rb1bo72iMPBjSRB cfoGYqofZM5bosemUZoWBKEzie7Ijkyr59xn1PZLAURUPrhPMwHnmMp73jJoUQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=XQPNWyhi; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708789257; a=rsa-sha256; cv=none; b=Dmy0hyhETu2uqxsWK3k8KMKqZMygr6hCYj1iG/y6/aoXi6uKhhU2S/2vU6wrnFbkSLhkj4 1T7rTmj04VjE2fL1zJeLFNwuRAf3QJAup5MvPoZUx4gsoRy29fPFcMgvUxgLgjm3zDzry4 l19i5UsKJGGFdkatpFLHMwW9OxJdkiJztJENq3u3wws3Sd3Vw0Gyepphj3SRmiRNaoSDhA VuDBVMfBV3cmjFu3Iap1TgBVgmz3ZUu119AslPzqLW/4vPfqBo3EpOf6DWbojtENXJ/IPO IaZBVFO9ilQECWhY9/OC0o5/C1rbWOXyYi/RE66nDC/mxf0lKn7XZcAk4RUbsA== 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 7A91F24B3E for ; Sat, 24 Feb 2024 16:40:57 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdu8F-0004Hg-Ci; Sat, 24 Feb 2024 10:40:07 -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 1rcoNo-0008P6-6G for emacs-orgmode@gnu.org; Wed, 21 Feb 2024 10:19:41 -0500 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rcoD9-0000kC-Ri for emacs-orgmode@gnu.org; Wed, 21 Feb 2024 10:08:42 -0500 Received: by mail-wr1-x441.google.com with SMTP id ffacd0b85a97d-33d754746c3so667075f8f.1 for ; Wed, 21 Feb 2024 07:08:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708528118; x=1709132918; darn=gnu.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=r7OtDz6Uu84CQSNd7Izs7NUSlOEIq6b5f8A3UNrPHF4=; b=XQPNWyhiEAIdqt5I1DSjfw2Ag5T0xttJAUVT/MHJ/4ZlhExklQtKbf6xzsrB/DDJPx ZnlNdqASJxBP48XA7K7GRo4oTgBhGasojd+064NnY9JvbMJjvF8R+LFXg03ZzRADCyl5 g+mAst8itUnTIL2JqDX6KEAtlQXXcXNKyqZ1q0cqnhiBSOu/Q/cERUUti1NJ3Pwfaveh o1F+k32ZE1vlnIOpRCxZhDOhQloaYNmFPlTKioXGIrRU90Y5FBWQN3tS3flCBpKuHtg+ XartpUkNrdCQ3bph43OOnhxsggT7MrnDHu7AJFVfjKKSib7pm0DpAEiHP4atMYBHiNmg PQgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708528118; x=1709132918; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=r7OtDz6Uu84CQSNd7Izs7NUSlOEIq6b5f8A3UNrPHF4=; b=duA4UYpeMliVCuT3TNtoVqvOI1Kv0M6BY656uDm9SUvgCW62TvQYj0J/rU1bTP8/Oa vLaZPzCNaqQEMPQMtmoM9HJ3wey/X2t6jSTiBtYGkg8tyLIrahA/k2Y54zP/d6yvDQVS WGrxE+Od2LQFT0qFg1Y1E0g9NY0pn7+CP3npHP0XikMOvQkajalhrS0xsy+4F2NxPQM5 MyPMWw3Zg9KRHRpEwsVhE6OrkqeYT4JCKlqeTx+p4gl76AbWnnvHfd56S/1B4AOQxHLp pXK41huf9f7TpFpMBNYBFdZNkeNqRNEErN1HqIa59YkKGKgo0RIg2aVlGeCJ/M8rm/hA 0ggw== X-Forwarded-Encrypted: i=1; AJvYcCXToiUyJBqcF7/uLvSyMbGXI/gRJfXffSrKDooo/kezO4XYcJLDZt1W/qGRljENER2paPn7OZ5aR62hpr0SOBjxMlm5f28= X-Gm-Message-State: AOJu0YzHBK9OtrUorVCqUzHEzj1ibNcjDRLoAlKsd3t3wqFL150mlfJR cBNtJKm6p9feybVhGwSWB2I9e+VXTSDGuWf0F4zXu7lKXxeUz/yE0yWK6qcTbs6FXm3zpZerV53 CW2ESHlNy1R5j1Cj2Fdp76FOm6mWekSxvLcp2og== X-Google-Smtp-Source: AGHT+IHlazVgQ1+aYqMQyfy2G7MuyfEqVotB535Ao300YVG6OK1F4qsBwLSAQlZgF0///EyY0f95E3nf7TQ2wnwVob4= X-Received: by 2002:adf:fcc8:0:b0:33d:146a:d74a with SMTP id f8-20020adffcc8000000b0033d146ad74amr14419501wrs.22.1708528118014; Wed, 21 Feb 2024 07:08:38 -0800 (PST) MIME-Version: 1.0 References: <87wmr1rc2w.fsf@localhost> In-Reply-To: From: =?UTF-8?Q?Martin_Edstr=C3=B6m?= Date: Wed, 21 Feb 2024 16:08:27 +0100 Message-ID: Subject: Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command To: =?UTF-8?Q?Martin_Edstr=C3=B6m?= , emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::441; envelope-from=meedstrom91@gmail.com; helo=mail-wr1-x441.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Mailman-Approved-At: Sat, 24 Feb 2024 10:40:05 -0500 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.11 X-Spam-Score: -6.11 X-Migadu-Queue-Id: 7A91F24B3E X-TUID: CGmk1SLb7j6f And ignore my suggestion about stripping input on the Elisp side. Didn't think that through. On Wed, 21 Feb 2024 at 16:04, Martin Edstr=C3=B6m w= rote: > > Actually, I agree about your test case, that looks like it'd cause a prob= lem. > > So we patch the function to use `shell-quote-argument'? > > On Wed, 21 Feb 2024 at 15:38, Max Nikulin wrote: > > > > 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 trie= d > > it, but I expect an issue with > > > > Test \(f' =3D df/dx\) > > > > So `shell-quote-argument' is necessary and quotes around %i must be > > stripped similar to %s in mailcap entries in `org-open-file'. > > > > Notice that dollar-math $x =3D y$ is not recommended and considered as > > obsolete syntax. Use \(x =3D y\) or \[x =3D y\] (the latter for display= math).