From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7611 invoked by alias); 8 Nov 2015 15:27:52 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20933 Received: (qmail 2571 invoked from network); 8 Nov 2015 15:27:50 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,BODY_URI_ONLY autolearn=no autolearn_force=no version=3.4.0 X-Authority-Analysis: v=2.1 cv=X+5rdgje c=1 sm=1 tr=0 a=Rb7dudWe+J2gL+/7yVpO1Q==:117 a=Rb7dudWe+J2gL+/7yVpO1Q==:17 a=IkcTkHD0fZMA:10 a=q2GGsy2AAAAA:8 a=xKC5pskuuGISLmERFfsA:9 a=QEXdDO2ut3YA:10 Message-id: <563F69F3.9080402@eastlink.ca> Date: Sun, 08 Nov 2015 07:27:47 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: convolutions References: <563D5ED5.1070102@eastlink.ca> In-reply-to: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit On 11/07/2015 09:17 AM, Martin Vaeth wrote: > Bart Schaefer 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?