From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/24857 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Default --defaults file Date: Tue, 14 Apr 2020 13:36:50 +0200 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004601b105a33e9e47" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="100324"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lyndon Drake To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBX6A232AKGQEJS3DBCY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Apr 14 13:37:06 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wm1-f60.google.com ([209.85.128.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jOJsI-000PwL-BN for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 14 Apr 2020 13:37:06 +0200 Original-Received: by mail-wm1-f60.google.com with SMTP id o26sf3647518wmh.1 for ; Tue, 14 Apr 2020 04:37:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1586864226; cv=pass; d=google.com; s=arc-20160816; b=hjKKEGdQNkwJPkLUZX1brgXIN7S1UQd01DPFTah1xhiK82b8tvizhZmtYb07cw4djG RBdnsP767U4y9vHcENpqVGgQToUY7CY898n/xjTL4QKEVFNwrcgojNw0Q/tzPVicQipU 9UR88GReM9oMGtMFrYP9JFXCpUwkaJbeKdWkopsdwtrkO3lVz+RqbNeXFodbqFA2WSUe w1PrIXasSfvBG96CDnk0drg9elrPaZ3V/OOg0VQtT5NgDsEkOEXQz6OkAU4et1Jskiwk cp3rurnp8ydhgkrzdnraDHnKnrjap3qGGgRavPUGwPjm7/jrKKgz/onMLu3jYfHzeo+C RVrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:cc:to:subject:message-id :date:from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=gbkYPOFK2+s1+g9cWo7xbW3IvKulabsMZ8B4To2GJPc=; b=DCAsLdX9gXijMaW0OrXjhNKbkF/7JL8/+84oJ6QtxPOSmSKs3feKzvMnNRURFbFaCn V9cYSet8con2jOLoTZM5MsOmmfks2qR5pFn+COSBPy5ICZRUXJtqu30ZqDNQ6gaMJZwS HgP5BGfMVU+YBs2AYG5bSOrG+wWO2AP5VA4lem/0u4iBcOXLaX7aIDks0t1zqEHe9nLy EdFOkkpoic2KidHOpow4FWsk1eO22JjR1L5C9StmjqKJ9y401RgsJySqozhAGf4JhU9/ gsQwCU7d7aF7CZgw8wSYQEq8WzppyeaETYn0JiTs8ajuua3GCLmE4iir++aQh2RHt9h3 KJUA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="QoNeU0g/"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::135 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:cc:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=gbkYPOFK2+s1+g9cWo7xbW3IvKulabsMZ8B4To2GJPc=; b=fOq3nKW2m5I2BI2B7zi786uGt0JyEXLLQ8W/zM1huK49Ix7AcEYTu4SV7LQEuugvzm 8cc+bScf4YryL0+7D3un0o9o7Lnz6XNu/Us9g7dobPsb6CoCvEVyj68LVwuaIaKf0fvB 9wwNtW0vN53GO0dp+0drhMga+zElfilLGA3yH8AXiItzmKdMSyM1SA7olOm26ryaxO48 DEctlgJRBQM7UjSctdECo3iH+eIlzZ6eBKrhLK/UNeLF3ZAiewgn8q+MQAQBVsM3HFtt AALfGC2otNLvGILAhF3yBiA+YWNTst9cdldUBbr6VkCv8Ropif7mTLbNs5new32n9sFx q08w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=gbkYPOFK2+s1+g9cWo7xbW3IvKulabsMZ8B4To2GJPc=; b=AumIuVNauZt6p3zuxV4M5ppk8yjWYb5guner5935lVJFsfjvcnoAEFx88xpbWNxSjH aTdmiXyoa9OgwavwEltBKheF1I396wWMoXu6jqPOACEcq8ZbWQkk92JE3SYdrLPcYBwW 1rV7uwSTqMyTmWnzerkZ2Upl3soZVG0WKkRxYE7T8oHgpIPUQIi6/LgUE6JEihgx2FPq AXls8HP70DkOlV//QWtn2N0tG9rbx8hVUKm6s//6SMkeVJQaUxqvYfgxjqAxvHkGqGPT 8x5GQrDzRTMLvaIezx7ptSTcTgUWTbhuQEEpEU+kYjUe4RnEgNEZLwioPOcOqNyzGHY6 0Rtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:cc:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=gbkYPOFK2+s1+g9cWo7xbW3IvKulabsMZ8B4To2GJPc=; b=osjISxlZHfyaBUrwLeWbPLY7Mo9L5GCnUe1jUEP9cj5CzWNffpXmMXeTUa6T6PiyAZ 6FrYtk46JlaN3yRfS3IlTBwX572kGeFnWbx272Jr/ci5j9tXbjt4HaM3QQzL7D40/9ns aJyimh10OS9DyhDibTB8vm9tijldOLybPoS81iQXqFwBbSbCpJBqUMCRNv7u4+GTOMzP Cl5oM47/2lS8eJoyjVN93x3zFwDzegj2meH0TnjZBFuLHTTv+WnYDJW8Xr9gWyf9NBEl oUfQ5f9bQcQIeuGZQQ4wtshvgNpGBU6RtX7aEjSI6xWsW4vTZWxd0Dm0cq+aAGFSgaCM WPWQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AGi0PuYwpY3plasKYwXoNJhBRiRNoZ8Q/wOVqz7yPLkp1R/Zz8+49V3D YSKGlUCufv+vVEzn0XhUhiM= X-Google-Smtp-Source: APiQypLOi+byqzKTe6yKojS9OJSYnnMmL3cVaFrO5XeEq81nrI5Q2X5RqIY3GJ3vzcYdREc3NPNM9Q== X-Received: by 2002:adf:ce0d:: with SMTP id p13mr13836675wrn.66.1586864226015; Tue, 14 Apr 2020 04:37:06 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a1c:5644:: with SMTP id k65ls3051478wmb.1.gmail; Tue, 14 Apr 2020 04:37:03 -0700 (PDT) X-Received: by 2002:a05:600c:2112:: with SMTP id u18mr24166613wml.112.1586864222980; Tue, 14 Apr 2020 04:37:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586864222; cv=none; d=google.com; s=arc-20160816; b=w/+86Cc2SW7vkKFaBakGiEMbQs/kvThkAOma3WVjiAzN1xusZEoTay5MbigQvULpLr sV8xh1g5/4WpA/gXowZ72BJxXlZrqn+ZSSYFnHEGJjJwswLMZUHJ5RDJc8pcgzVXqJZF vC8CsqGCF1gamwoLbidZI1pU4mmivn3bt0cLTdG4ifhYyjL1x80QMQnmiM0wObnG/JFe s6p21QTbA7sAKc9fo+gdBycM0eDHDE2Evjzoizn4nc0NYg4F4Ye8SA6waINd34ntipk5 MghrogqC21tK/qpse9yYs0dIdDYc63f+L7G7nrzddCzORd2i3yYvk4//Ug6Um8gwCQK3 tjFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=coki5kQzMo6N+r+Dt/Y5La8gFP+YcfQ/R7K2IxfL8vE=; b=pnN/v7Y3yBHs2xCSHt295WzdRRYgk3tW++I0ES7EHjfYoDmGqoLc04BMPMKYwqY9Rp xUdpKRzgg2DZKE2eRp6RwsG6xwaL8fkz+j7EUj4cYwSCudkEIPlxhSIQ08UcKcDcrUew O4469raRwkb4LeXzOUNa8taG+H/QcQwX2zGzFENAg1BK6DWEU6UYLNZIlaGKGI0EOkTu AUKyMMwBd7ck4Ki9i0YMbR7vL0bqzj0vlDD+VXMK3rigz/OpdnNj0L59AzSgfpqtILVz xLRl7OuiW0zTJAmUqitPuhaMFU3b+ZNMlagFWF5OfWixU9KCQfpxDm+aYBiTkmL1kYcA s6xA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="QoNeU0g/"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::135 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com. [2a00:1450:4864:20::135]) by gmr-mx.google.com with ESMTPS id q17si659549wmg.1.2020.04.14.04.37.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Apr 2020 04:37:02 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::135 as permitted sender) client-ip=2a00:1450:4864:20::135; Original-Received: by mail-lf1-x135.google.com with SMTP id 131so9059513lfh.11 for ; Tue, 14 Apr 2020 04:37:02 -0700 (PDT) X-Received: by 2002:ac2:53a6:: with SMTP id j6mr13500578lfh.153.1586864222239; Tue, 14 Apr 2020 04:37:02 -0700 (PDT) In-Reply-To: X-Original-Sender: melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="QoNeU0g/"; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::135 as permitted sender) smtp.mailfrom=melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:24857 Archived-At: --0000000000004601b105a33e9e47 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Also you don't have to call your shell script "pandoc". My (Perl) script is called "runpandoc". It used to parse command line options from text files. Now it just looks for a pandoc.yaml file in the pwd, its parent or the home directory and shoves it onto the command line. Den m=C3=A5n 13 apr. 2020 23:48John MacFarlane skrev: > > I'm reluctant to do this because of the security implications. > Somebody could place a file in your ~/.pandoc and it would cause > an arbitrary executable (filter) to be run each time you run > pandoc! Shell script idea works and seems safer. > > Lyndon Drake writes: > > > Hi, > > > > The (relatively) new --defaults support is wonderful. I wondered if > there > > is any chance of there being a "default" --defaults file. This would > help > > in general (just invoke pandoc without having to specify defaults and > get > > whatever I have set as my default behaviour) but also specifically for > e.g. > > hugo which has no way to alter the command-line arguments when it > invokes > > pandoc. One suggestion is to put a shell script called pandoc in my pat= h > > ahead of /usr/local/bin/pandoc and get the same behaviour but personall= y > > I'd prefer something in pandoc. > > > > Best, > > Lyndon > > > > -- > > You received this message because you are subscribed to the Google > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/e0b4eeef-b167-4e50-b000-= c16a8cb4a961%40googlegroups.com > . > > -- > You received this message because you are subscribed to the Google Groups > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/m2y2qzgirr.fsf%40johnmac= farlane.net > . > --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/CADAJKhDfqRht-YJ6-f3eofcz%3DZtpLKEmiJkTayodifcFokCJYA%40mail= .gmail.com. --0000000000004601b105a33e9e47 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Also you don't have to call your shell script "p= andoc". My (Perl) script is called "runpandoc". It used to p= arse command line options from text files. Now it just looks for a pandoc.y= aml file in the pwd, its parent or the home directory and shoves it onto th= e command line.

Den m=C3=A5n 13 apr. 2020 23:48John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> skrev:

I'm reluctant to do this because of the security implications.
Somebody could place a file in your ~/.pandoc and it would cause
an arbitrary executable (filter) to be run each time you run
pandoc!=C2=A0 Shell script idea works and seems safer.

Lyndon Drake <lyndon-S8RYeTzMgQ3QT0dZR+AlfA@public.gmane.org> writes:

> Hi,
>
> The (relatively) new --defaults support is wonderful. I wondered if th= ere
> is any chance of there being a "default" --defaults file. Th= is would help
> in general (just invoke pandoc without having to specify defaults and = get
> whatever I have set as my default behaviour) but also specifically for= e.g.
> hugo which has no way to alter the command-line arguments when it invo= kes
> pandoc. One suggestion is to put a shell script called pandoc in my pa= th
> ahead of /usr/local/bin/pandoc and get the same behaviour but personal= ly
> I'd prefer something in pandoc.
>
> Best,
> Lyndon
>
> --
> You received this message because you are subscribed to the Google Gro= ups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send= an email to pandoc-discuss+unsubscribe@googlegr= oups.com.
> To view this discussion on the web visit https://groups= .google.com/d/msgid/pandoc-discuss/e0b4eeef-b167-4e50-b000-c16a8cb4a961%40g= ooglegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe@googlegroups.= com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pando= c-discuss/m2y2qzgirr.fsf%40johnmacfarlane.net.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/CADAJKhDfqRht-YJ6-f3eofcz%3DZtpLKEmiJkT= ayodifcFokCJYA%40mail.gmail.com.
--0000000000004601b105a33e9e47--