Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: convolutions
Ray Andrews <rayandrews@xxxxxxxxxxx> 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")
Messages sorted by:
Reverse Date,
Date,
Thread,
Author