From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/16621 Path: news.gmane.org!.POSTED!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Filter with arguments Date: Fri, 6 Jan 2017 22:11:15 +0100 Message-ID: <20170106211115.GA30105@Johns-MBP.home> References: <20170106114647.GG791@Administrateurs-iMac-3.local> <8760ls8jby.fsf@fastmail.fm> <20170106125852.GA1662@Administrateurs-iMac-3.local> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed X-Trace: blaine.gmane.org 1483737090 29570 195.159.176.226 (6 Jan 2017 21:11:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 6 Jan 2017 21:11:30 +0000 (UTC) User-Agent: Mutt/1.6.2 (2016-07-01) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBAMQYDBQKGQEPNH4QVI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jan 06 22:11:26 2017 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pg0-f63.google.com ([74.125.83.63]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cPbnJ-000723-Po for gtp-pandoc-discuss@m.gmane.org; Fri, 06 Jan 2017 22:11:25 +0100 Original-Received: by mail-pg0-f63.google.com with SMTP id 194sf4491307pgd.0 for ; Fri, 06 Jan 2017 13:11:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:date:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent: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=WGYdNW1q+3wGOdvhUoE3wHEdr75lwLFMP9ekZVj9Hy8=; b=JK2Lav0dXZJHfcWU89yg3iL1E9I2ycKs3j0KpaclOhbnxN7Bbns5+Dp9HRn1ziRfTJ nPdR9YuZeWL8qodTaZbBMFChlekiXDCDrgxAmN3gG0IfjrE+eRr9AKsL4SYvCwHWhjKi yHe+NJiUIfiM7yJbQULQzFLvBuNPZsBTK6YoH+iXqvvNuLIZktMgg0rmrEtqcJgs5XGK VX8MwJ7VgtDT/2CaekfLo00lmZRu7AKmeEvC18mqzCa16u6mpoBcFRTZPzzO3Xw4DgBI izmvDif3LNCeUwrwExuAihiobuwsR2CaAN95RWIyzknU3SfRBcjECVJ0uU/VXYgl9oNL pqig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:date:to:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent :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=WGYdNW1q+3wGOdvhUoE3wHEdr75lwLFMP9ekZVj9Hy8=; b=txFd9yEzaHaY0w6nn3AJHfb2l6kSmMXg8K8d5wHDFLj97wGlEI8aTd8fnW/IIPV1+i 9ILVooLOdnVq7+REf1Ph8jaiZQquf25VRPHZYrxEkke7Zsu5SvzgzsCC7uBZKX5WJr7D Oprp1d5pMrq9f6NCfRjH9d8KOQQtGV7gzLhaSNhMJLn422Wsdacdr+84DBG9YDy99pjO pfXpt3aqPrXPM2kgm0Sq46s9haScpAdMw9NbEE9vWyf22aos5yuDX7hTSzALFr2iT3aO cKKpU/TeJn4zemQmA9Ye6mgzjKIEyZK12BtwuA4FQnmS4jhkb93a3NuC7dNYJnUI0gm9 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AIkVDXLPyXmm30og4tD5Z08M3V1fbMLzy3Rj2Q1WjoRq7HVl2uU0XD/uUI9rrFe2O1dvsw== X-Received: by 10.36.23.81 with SMTP id 78mr61673ith.7.1483737089833; Fri, 06 Jan 2017 13:11:29 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.36.17.73 with SMTP id 70ls934480itf.3.gmail; Fri, 06 Jan 2017 13:11:29 -0800 (PST) X-Received: by 10.99.234.5 with SMTP id c5mr1771331pgi.172.1483737089061; Fri, 06 Jan 2017 13:11:29 -0800 (PST) Original-Received: from mail-pg0-x22b.google.com (mail-pg0-x22b.google.com. [2607:f8b0:400e:c05::22b]) by gmr-mx.google.com with ESMTPS id r1si19527275pfg.4.2017.01.06.13.11.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Jan 2017 13:11:29 -0800 (PST) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22b as permitted sender) client-ip=2607:f8b0:400e:c05::22b; Original-Received: by mail-pg0-x22b.google.com with SMTP id f188so255229719pgc.3 for ; Fri, 06 Jan 2017 13:11:29 -0800 (PST) X-Received: by 10.99.173.68 with SMTP id y4mr143392031pgo.54.1483737088650; Fri, 06 Jan 2017 13:11:28 -0800 (PST) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id t21sm161881406pfa.1.2017.01.06.13.11.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Jan 2017 13:11:27 -0800 (PST) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 3447FA0C5; Fri, 6 Jan 2017 16:11:17 -0500 (EST) Content-Disposition: inline In-Reply-To: X-PGP-Key: http://johnmacfarlane.net/jgm.asc X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20150623.gappssmtp.com; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:400e:c05::22b as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org 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.org gmane.text.pandoc:16621 Archived-At: +++ Matthew Pickering [Jan 06 17 18:42 ]: >Communicating arguments though env vars is very ad-hoc, an option I still haven't understood the case against using environment variables. In what way are they "ad hoc"? They are pretty standardly used to communicate options to 'make', for example. It's just about the same effort to write MYARG=blah pandoc --filter foo as to write pandoc -filter foo --filter-args blah And an added advantage of environment variables is that you can set them once and then not have to repeat.