X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=d+PsI4HKhVxIfAt7 hBVe/39LfAjmvNam4HVDKGaaRu+4FU++M3C9AlJ2g4dQ+fbFSPiAdGnf4cHh3xdM sVXVU4RX4YfaFPX0I5tjfyMl6lBdR3m+Ajb0bzk6dNjostNFHMeYO2Tnkf8r/ioX m8kyN2rK5mQb2f8dW1DSFVgBdUs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=Iu1mOPmLiAf2R6euv47nen wP7X8=; b=N0YcclZYltan0DPrNOPmij2ztp5vD/oiAGl83DBILh8KsKM1ezyJch bIRaOkr9U6TUtiC8pgpxWioYMgsoFxZU0LY5L3n2J5h052bY947l3KHQ1u9JRNUV F/7a04bsqlOhF/AkDY172M3khU1DPrQ3eZPqft8fZjkG18N2XCUF0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=ronald, Ronald, colour, H*r:sk:smtp-ou X-HELO: smtp-out-no.shaw.ca X-Authority-Analysis: v=2.2 cv=HahkdmM8 c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=IkcTkHD0fZMA:10 a=6LaghliVt-0WA_5q2jcA:9 a=QEXdDO2ut3YA:10 Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca Subject: Re: Bug in zsh and bash with builtin ls when colorization is used and the filename starts with a drive letter To: cygwin AT cygwin DOT com References: <1501599567 DOT 2374603 DOT 1059653184 DOT 432A46B6 AT webmail DOT messagingengine DOT com> From: Brian Inglis Message-ID: Date: Tue, 1 Aug 2017 12:20:06 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfPc1youtfWgeWjYVEDOsdwbzt3cyMnJpvyKVHLxJPb1xTYa+7M3oO6CKWWY2Odh+S6d5seOf+bUjCgehi3HWSl5AE6KWZOt9wMxf75WaCUm5IKmLCEmd x78KkKM8c8WexABd9mPgT7fjbmFxjRl/21H63K9pA4qXXPk0RigdIOcbOpHxOujbROAvo0e2T7eQKg== X-IsSubscribed: yes On 2017-08-01 11:45, Vlado wrote: > On 1.8.2017 16:59, Ronald Fischer wrote: >> This is with zsh 5.3, which is what I'm usually using. For curiosity, I >> tested the same with bash, and the bash ls builtin command seems to >> behave the same as zsh. > are You sure? > I run man bash, then /^SHELL BUILTIN COMMANDS and see ... kill, let, local, > logout, mapfile, ... > No ls. > Check Your LS_COLORS value for missig ':' separator between *.log and *.txt > definitions. export LS_COLORS="di=1;4;33:*rc=7:*.rb=32:*.irbrc=32:*.sh=36:*.zsh=36:*.bak=2:*~=2:*.log=34;*.txt=34:ex=1" ^ . missing ^ s/b : To avoid these typos, you might want to look at using the proper coreutils tool dircolors, copy its default config file /etc/defaults/etc/DIR_COLORS to ~/.dircolors, customize it, and use it, e.g.: # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" \ || eval "$(dircolors -b)" alias ls='ls --color=auto' # classify files in colour alias dir='dir --color=auto' alias vdir='vdir --color=auto' fi Check out the other defaults in /etc/defaults/etc/ for other shell profile stanzas and tools you can use in your profiles. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple