From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30519 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: BPJ Newsgroups: gmane.text.pandoc Subject: Re: Default data dir Date: Thu, 5 May 2022 14:46:26 +0200 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000de015905de4321aa" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30391"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pandoc-discuss To: John MacFarlane Original-X-From: pandoc-discuss+bncBCWMVYEK54FRBLMOZ6JQMGQE6VHDYQI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu May 05 14:46:42 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f61.google.com ([209.85.208.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nmasS-0007fo-O5 for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 05 May 2022 14:46:40 +0200 Original-Received: by mail-ed1-f61.google.com with SMTP id l24-20020a056402231800b00410f19a3103sf2266839eda.5 for ; Thu, 05 May 2022 05:46:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1651754800; cv=pass; d=google.com; s=arc-20160816; b=fJ2iGUJ0c/2v79MwBl+Q6qVSH66bTQVTKIIEFF59FpZ2NLDmPZGNxdn2shn+Wlm14y WEU+euDP6a8xOoycsLGsiVrT4aEyuj4gE3+B/qZK4ruOSWsAAF/Qv++c/RbvZwr4gfLx XIBl5xx8LBpRg17VtpUf/XDPbtRJ9+N/VQBny5UBiDSfAzdJhHoG/1GvScTnd11ccsdZ Jbk4c77xkcAeT5Js5b2urGCs/KOP8zyvT2VwuCTmqd0OhjmR4PZFUgJxJGtog1foPkq8 yzp9nFhSMrcwx788Jd0H5Zm8B8CwQ8+LRVHctZRAjnOcdm6927lPSWSs52jxMAgy21/r 2JJg== 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=UpDf2NkhRjAAkPMEvus9maEUH/2AymCTQwhmaY7mbVM=; b=WZkS0uhuvvqBTcYPzwfNaiOjINeREhvbeStv67pTkF27oYklWFLjp+aydQal18SNBV QHWrVN2nMyZ3MzTP0YEADu0jJduHP7xwSTd8DsgzKYbXDAxxtupGautdjdAVsdBG6+Yo OFq1mOsf2B1blfLTpTPFtzvU9u03FswyaMfFhYW9xK7lzhFxcRAZPJjcT6tS0/Uyzmdk zGYoHLnwLEpW7EXEC9Y+KLCCH9brCjLEU5hi87/ve7LX6PHxbRo4Wpzr3BqXVneVAk40 YRpJiCLBM/4vbD5pmkN0GbxSJr2P7kJyXllvmGD+XRJL5tm6010J9JEjmg5c1ATR2yWl udSQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=o60HLGxy; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::633 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=20210112; 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=UpDf2NkhRjAAkPMEvus9maEUH/2AymCTQwhmaY7mbVM=; b=h07+It+Rs6YkcExroYvcZIsbfuBAb8o+b06IejnD+N1rp0JtgDYULY0iw7wWdNUIbw v2TQEXQqucOPlx2N3qlYnBhMxGyAZWrXasge9Tq5ilYPkxSyhreuzKzXei5iUNQz4G1d kbxI+dKooae1vzw8GBJF8tkM7we/zDBoZGdI+SDkg181QX7b/p2k+DIlx5lo0Fy5m435 N1ZRRJv+GZ5H1tI7VPv8YWyJhhgpNuXAU+V0q0+Is1gdhTgCnvwTAvu8oZCv7NECTzU6 2UynCo42K/w3zBMhyEgG8lA5OUbKYxUP6BWSALmhA9oNqNLBcHZUL41OUNmC7tYk38DJ MWgg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=UpDf2NkhRjAAkPMEvus9maEUH/2AymCTQwhmaY7mbVM=; b=Rg7IBhnBmR75V8U54fAP0W16Yg0dhEzFTiOxRy3q6kZNchcV5mSLD1Lvx5N0/16MQG IrllurT0rIFN0r6FsQ2IrmQD5QiIX2AkvmBi/P2oh9pz2wXAUzQovOaUF7SXdmDUusEy Aw02yyXt+EgEYfz8c1nJGa981V6kWtVJXIGdNb+djLwBfCEsL18YDqFHgHA3WBuOGtz6 u0Jz1hEa3JdAzHI5FXXSjtWrpYVU2p3LHggY5TO4R8Big23dqLFZEu/0qUykZiLleUv/ WTvOi4voksUeOuX/iYa/fqcAhPrTNhMvYgnSEekIvOF+9jzA7zYy+OmTnsGAH/Quoztq Fy3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=UpDf2NkhRjAAkPMEvus9maEUH/2AymCTQwhmaY7mbVM=; b=uxhnSs45zQ5Qh0pcLa4WkkpTlGNChG74yUqw6mREelneZp3h181L7H1hxxZ5dbqM6J vHqKMo86ySTwJw3KfdHjrgTeHrRcieY7ENmE9EwofIQx8pmZPoB+y7EV4drEGXfIOsrB 8GE2Wxz6bks3WtiZvyRhFV1QHpVdKKOZd8LPIkL5BrlkrcUYCkdo6QObTB56BaPmki0s gTLWHXPR0eajpEErTlx+WKicBIqLs6WyL/vB1Tp3TloVpf6XlwMsyiaQIXc9Y3flqHIN vV1sevCGnk98ZupRfZYsKAAp+Vh4DWrMF18gSC02/x+mtMF78YDgJpFzUthgIUT+8uu8 lmqw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530xH325yB/zEYm+DLT3CHK6bjVCvBWctISwWEW2EAbT7QzXr8Il s9wQxhCrI8m/UgAswHsdcGE= X-Google-Smtp-Source: ABdhPJyoQR/BVg9L0I6UbXrKaGdKN8sIDmWcEvlzXUJjZ2e/uwHMgdsrjQxX4/dgRwdtzN2ZjNot6Q== X-Received: by 2002:a17:907:3e8f:b0:6f4:645c:f418 with SMTP id hs15-20020a1709073e8f00b006f4645cf418mr16985919ejc.609.1651754800166; Thu, 05 May 2022 05:46:40 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:907:6e09:b0:6f3:ead4:abc6 with SMTP id sd9-20020a1709076e0900b006f3ead4abc6ls2661625ejc.5.gmail; Thu, 05 May 2022 05:46:36 -0700 (PDT) X-Received: by 2002:a17:906:c114:b0:6f3:ad4c:c886 with SMTP id do20-20020a170906c11400b006f3ad4cc886mr26982262ejc.124.1651754796295; Thu, 05 May 2022 05:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651754796; cv=none; d=google.com; s=arc-20160816; b=S80B1hHy6TdGqr8X5dQ2Mxj/RtglWyy7mCeRuY5FH5q4ULEGO9WOu81BKXa/JDyVbD KAUN5rbe/Dwjph3SQBLmXvc87tnw0E9sm8S/1sxsFvg90fWN0ZTyu00Ny5f/7iIfY7Ms jLFmPd2hJdZAlu2uEWFNZIXpAv4giHXYW6pA9lq7VGpLpphs0KlOOlWGunLra8M/krwa FviWVHAYh+LPH4MbXiSoRPsSj9zag5b+D2nv+Sy8lDUWgJpr3Ki/LI8DdwfZeySL+iXi qDHmC+nwT47RiK1mPxcQDse3Fu3jPcoL2vkHT6RtHNOe5PvGGltatv7dq1qrF+pe6jKi Ddcw== 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=YfkGy3pqRardw9EmTM2FJv11emmADBRJyZdCJT+RwYA=; b=VdwOo2cXjAOkxHQ2Q2K5S8vL8cQx1s4GDqfe9RzguV/HudqoFCVWgX1LMVRAZCu8Gq MTDlsrOrzdL0OpcU7cOjwrQQCgBqek08b36aNMqrqmTDfKri0IsA6nbaWK3khI2/N133 XhuER9NJzJCC+XiYkEJQpAVFE/MmfvZb47ZX7kCIT99XmPIORJ5hSAJaoxoZwIHxNpyP EJGSp7FFY0vQSxoap67pgjGW+xVOhemIu/QNv6ibguVQb4cj/w21Vj8nlHKbGUmmaXhE SXr1stbiBdSq9MkhHQ5+ELwpAhc7V81wDohuVf5yyHsyV5TtRthsFxHVzonq///pB1xf kgTA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=o60HLGxy; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::633 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-ej1-x633.google.com (mail-ej1-x633.google.com. [2a00:1450:4864:20::633]) by gmr-mx.google.com with ESMTPS id v8-20020aa7d648000000b00425adbac75dsi89119edr.2.2022.05.05.05.46.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 May 2022 05:46:36 -0700 (PDT) Received-SPF: pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::633 as permitted sender) client-ip=2a00:1450:4864:20::633; Original-Received: by mail-ej1-x633.google.com with SMTP id g6so8522962ejw.1 for ; Thu, 05 May 2022 05:46:36 -0700 (PDT) X-Received: by 2002:a17:907:6d24:b0:6f4:bc43:e7d1 with SMTP id sa36-20020a1709076d2400b006f4bc43e7d1mr8503758ejc.581.1651754795924; Thu, 05 May 2022 05:46:35 -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=20210112 header.b=o60HLGxy; spf=pass (google.com: domain of melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::633 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:30519 Archived-At: --000000000000de015905de4321aa Content-Type: text/plain; charset="UTF-8" At least that can be assigned to a variable in a more portable fashion than a hardcoded path, but this reminds me that Pandoc.pm, the Perl wrapper module, resorts to this kind of parsing --version output with regex to determine the default data dir path, so a more straightforward way of getting the path may be good for the use of wrappers. Den ons 4 maj 2022 19:28John MacFarlane skrev: > > You can already do > > $(pandoc -v | grep "User data directory" | sed -e 's/.*: //') > > > BPJ writes: > > > It occurred to me that it would be nice if `--data-dir` as only option > and > > without any argument would print the default data dir path so that one > > could use `$(pandoc --data-dir)` to get there. I just wanted to probe the > > waters whether others think this is utterly silly or not before opening > an > > issue. (I'm aware that you could define a variable in your shell rc file, > > but doing so on every machine/device[^1] is a hassle.) > > > > [^1]: Yes I can run pandoc under Termux on Android. I haven't been able > to > > get LaTeX to work yet, but it's good for work in progress. > > > > -- > > 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/CADAJKhAkX1%2BYaS6ErJv6QAd9zKvRF66cG5qr%3DsxjjXTCZB-mvA%40mail.gmail.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/CADAJKhC2kXX5RxYqj9GQTt4emyd0OFSwgS0UW7ecReffAtUhSA%40mail.gmail.com. --000000000000de015905de4321aa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
At least that can be assigned to a variable in a mor= e portable fashion than a hardcoded path, but this reminds me that Pandoc.p= m, the Perl wrapper module, resorts to this kind of parsing --version outpu= t with regex to determine the default data dir path, so a more straightforw= ard way of getting the path may be good for the use of wrappers.

Den ons 4 maj 2022 19:28John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> skrev:

You can already do

$(pandoc -v | grep "User data directory" | sed -e 's/.*: //&#= 39;)


BPJ <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> It occurred to me that it would be nice if `--data-dir` as only option= and
> without any argument would print the default data dir path so that one=
> could use `$(pandoc --data-dir)` to get there. I just wanted to probe = the
> waters whether others think this is utterly silly or not before openin= g an
> issue. (I'm aware that you could define a variable in your shell r= c file,
> but doing so on every machine/device[^1] is a hassle.)
>
> [^1]: Yes I can run pandoc under Termux on Android. I haven't been= able to
> get LaTeX to work yet, but it's good for work in progress.
>
> --
> 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/CADAJKhAkX1%2BYaS6ErJv6= QAd9zKvRF66cG5qr%3DsxjjXTCZB-mvA%40mail.gmail.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 pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.= google.com/d/msgid/pandoc-discuss/CADAJKhC2kXX5RxYqj9GQTt4emyd0OFSwgS0UW7ec= ReffAtUhSA%40mail.gmail.com.
--000000000000de015905de4321aa--