From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29741 invoked by alias); 7 Nov 2015 05:37:19 -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: 20906 Received: (qmail 25547 invoked from network); 7 Nov 2015 05:37:18 -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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Qr9pcN6JgwsCztvpoyfhVGcNKBfkyFg5EutKwPiS68Y=; b=LNewrgxa4lYejeFno4teEwUheZS9Yxo7SgaYHBwb2L4KPKwuREzVLoBZUTKWuIyd29 eTM9OdWqb9g8LHeXQteWFtQTjor9l90ogNjgHYDK6Ic12oPAA3Chs2VE6EbhLaRK28Ao 8BjIRIGRoajfdelGdzPj2RInoQkfDbmCFFGAh3ZqzQsznVu7x+UFAp88Wy+g96zt6t75 Ohuv+UulCDev6kO3Vb97NIbVtmcoWFAQo0GJUB3+g66YxPAmNtr//vPJyrsmzdN0F335 00gtAJYQuXkng59Y/hpz0qODH4RRCNhcNldkDIz9TRsClGpwXYXGAWHUyI3te81GAVkj GdGw== MIME-Version: 1.0 X-Received: by 10.55.19.213 with SMTP id 82mr17553337qkt.51.1446874635513; Fri, 06 Nov 2015 21:37:15 -0800 (PST) In-Reply-To: <563D5ED5.1070102@eastlink.ca> References: <563D5ED5.1070102@eastlink.ca> Date: Sat, 7 Nov 2015 06:37:15 +0100 Message-ID: Subject: Re: convolutions From: Mikael Magnusson To: Ray Andrews Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 On Sat, Nov 7, 2015 at 3:15 AM, Ray Andrews wrote: > Gentlemen: > > echo "$(eval echo "\${$(cat in_file)}")" >! out_file > > That's the best I've been able to do expanding color variables, eg. " ${red} > " into their native " \e[31;1m " in a file. It's not a prize winner as far > as zsh obfuscation goes, still, can it be done more simply? Also, I'd not be > surprised to learn that there's one of those ancient little utilities that > already does that: > > cat in_file | ancient_utility > outfile > > is there? A smart thing to include when asking for a simpler way to do an obfuscated thing is what it is you're actually trying to do. Saves people the effort of trying to deobfuscate your code first. It's also super unclear what you mean by "expanding $red into native". -- Mikael Magnusson