From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20538 invoked from network); 12 May 2008 16:41:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 12 May 2008 16:41:07 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 39412 invoked from network); 12 May 2008 16:41:03 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 May 2008 16:41:03 -0000 Received: (qmail 1603 invoked by alias); 12 May 2008 16:40:59 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25008 Received: (qmail 1588 invoked from network); 12 May 2008 16:40:59 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 12 May 2008 16:40:59 -0000 Received: from equator.ru.net (equator.ru.net [194.58.105.39]) by bifrost.dotsrc.org (Postfix) with ESMTP id ADB8F80ED172 for ; Mon, 12 May 2008 18:40:55 +0200 (CEST) Received: from localhost ([127.0.0.1]) by equator.ru.net with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Jvb53-0005Tz-Ui for zsh-workers@sunsite.dk; Mon, 12 May 2008 20:40:54 +0400 Message-ID: <48287311.5040601@sergio.spb.ru> Date: Mon, 12 May 2008 20:40:49 +0400 From: sergio User-Agent: Mozilla-Thunderbird 2.0.0.9 (X11/20080110) MIME-Version: 1.0 To: Zsh hackers list Subject: Re: Colored completion listings References: <4828347A.8070503@sergio.spb.ru> <20080512170449.45adb932@news01> In-Reply-To: <20080512170449.45adb932@news01> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: zsh@sergio.spb.ru X-SA-Exim-Scanned: No (on equator.ru.net); SAEximRunCond expanded to false X-Virus-Scanned: ClamAV 0.91.2/7103/Mon May 12 17:58:42 2008 on bifrost X-Virus-Status: Clean Peter Stephenson wrote: >> 1) zsh highlights broken symlinks as unbroken. but mi color is defined >> and ls highlights it whith correct color. > > My understanding of ls, and experiment, suggest you mean "or". yes. However, I've fixed "or". Great. I correctly understand, that 'mi' is unused in zsh? (But it described in manpage) >> 2) zsh highlights directories like test.jpg as jpeg file >> color for directories is defined before *.jpg > > Yes, the logic is the wrong way round. File type tests from stat should > come before extension tests. (This can be kind of annoying in files from > Windows that leave execute permissions all over the place but being > compatible with ls is preferable.) find -type f -exec chmod a-x {} \; or chmod a-x **/*(.) (: -- sergio