From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9738 invoked from network); 19 Jul 2008 00:40:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 19 Jul 2008 00:40:05 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 28037 invoked from network); 19 Jul 2008 00:39:59 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Jul 2008 00:39:59 -0000 Received: (qmail 25196 invoked by alias); 19 Jul 2008 00:39:57 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25306 Received: (qmail 25180 invoked from network); 19 Jul 2008 00:39:56 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 19 Jul 2008 00:39:56 -0000 Received: from old-tantale.fifi.org (old-tantale.fifi.org [64.81.30.200]) by bifrost.dotsrc.org (Postfix) with ESMTP id 292D180561C2 for ; Sat, 19 Jul 2008 02:39:52 +0200 (CEST) Received: (from phil@localhost) by old-tantale.fifi.org (8.9.3p2/8.9.3/Debian 8.9.3-21) id RAA25140; Fri, 18 Jul 2008 17:39:50 -0700 Sender: phil@fifi.org To: "Richard Hartmann" Cc: "Zsh hackers list" Subject: Re: Why does colors() not use %{ %}? References: <2d460de70807181723q4124849bl96066bd32890bfaa@mail.gmail.com> Mail-Copies-To: nobody From: Philippe Troin Date: 18 Jul 2008 17:39:50 -0700 In-Reply-To: <2d460de70807181723q4124849bl96066bd32890bfaa@mail.gmail.com> Message-ID: <87iqv2d7vt.fsf@old-tantale.fifi.org> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV 0.92.1/7751/Sat Jul 19 00:38:00 2008 on bifrost X-Virus-Status: Clean "Richard Hartmann" writes: > Hi all, > > after a somewhat embarassing email to -users, I realized colors() does > not properly escape color codes in its variables. What is the reason > for this behaviour? Because %{ %} is only recognized in prompt expansions. And colors is meant to be used for more than just in the prompt. Phil.