zsh-users
 help / color / mirror / code / Atom feed
From: Martin Vaeth <martin@mvath.de>
To: zsh-users@zsh.org
Subject: Re: convolutions
Date: Mon, 9 Nov 2015 08:50:03 +0000 (UTC)	[thread overview]
Message-ID: <n1pmnr$k8s$1@ger.gmane.org> (raw)
In-Reply-To: <563F69F3.9080402@eastlink.ca>

Ray Andrews <rayandrews@eastlink.ca> wrote:
> On 11/07/2015 09:17 AM, Martin Vaeth wrote:
>> In fact, envsubst was exactly written for the purpose of
>> *safely* expanding variables (and *only* that).
>>
> Sounds like precisely the thing. Alas, I tried it, and it strips the
> parameters but does not convert them unless each parameter is explicitly
> exported first

eval_gettext() from gettext.sh does it like this
(where $1 contains the text):

(export PATH `envsubst --variables "$1"`; envsubst "$1")


      parent reply	other threads:[~2015-11-09  8:50 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-07  2:15 convolutions Ray Andrews
2015-11-07  2:49 ` convolutions ZyX
2015-11-07  4:10   ` convolutions Ray Andrews
2015-11-07  5:37 ` convolutions Mikael Magnusson
2015-11-07  6:16   ` convolutions Ray Andrews
2015-11-07  6:38     ` convolutions Mikael Magnusson
2015-11-07 15:35       ` convolutions Ray Andrews
2015-11-07 17:26         ` convolutions ZyX
2015-11-07  5:38 ` convolutions Bart Schaefer
2015-11-07  6:33   ` convolutions Ray Andrews
2015-11-07  9:32     ` convolutions Bart Schaefer
2015-11-07  9:40       ` convolutions Bart Schaefer
2015-11-07 16:09       ` convolutions Ray Andrews
2015-11-07 17:33         ` convolutions Bart Schaefer
2015-11-07 18:28           ` convolutions Ray Andrews
2015-11-07 17:17   ` convolutions Martin Vaeth
2015-11-08 15:27     ` convolutions Ray Andrews
2015-11-08 19:14       ` convolutions Bart Schaefer
2015-11-08 21:06         ` convolutions Ray Andrews
2015-11-09  8:50       ` Martin Vaeth [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='n1pmnr$k8s$1@ger.gmane.org' \
    --to=martin@mvath.de \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).