Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: convolutions



On 11/07/2015 09:17 AM, Martin Vaeth wrote:
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
If you really want to replace exactly
and only the specific references to color variables, you need
something like Zyx's sed expression.
Or envsubst from gettext.
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, which makes the thing a bit cumbersome for general use. Is there a work-around?



Messages sorted by: Reverse Date, Date, Thread, Author