From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14373 invoked from network); 17 Jul 2002 19:47:55 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 17 Jul 2002 19:47:55 -0000 Received: (qmail 20062 invoked by alias); 17 Jul 2002 19:47:49 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17464 Received: (qmail 20051 invoked from network); 17 Jul 2002 19:47:49 -0000 To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: Problem with /cygdrive and (#i) globbing flag In-reply-to: ""Vagn Johansen""'s message of "Wed, 17 Jul 2002 21:14:34 +0200." <005601c22dc6$2f8030e0$0601a8c0@vectravl400mt> Date: Wed, 17 Jul 2002 20:42:20 +0100 Message-ID: <26766.1026934940@csr.com> From: Peter Stephenson "Vagn Johansen" wrote: > />ls /cygdrive/c/c* > /cygdrive/c/chop.txt /cygdrive/c/cygwin.zip > />ls (#i)/cygdrive/c/c* > zsh: no matches found: (#i)/cygdrive/c/c* The problem is that the /cygdrive is a bogus directory. To do case-insensitive matching, zsh has to compare every entry in every directory to see if it matches, even if it doesn't contain wildcards. So it starts be looking at all the files in /, and fails to find cygdrive. I think you can get away with `mkdir /cygdrive' --- at least it seems to work for me. Now zsh can see it when it looks at the root directory, but cygwin still treats the path specially, so reading /cygdrive shows all the drives. Another sure-fire method is to put the (#i) after the bit you don't need to compare case-insensitively, i.e. /cygdrive/c/(#i)c*. This should be faster, for reasons which the first paragraph should indicate. Of course, zsh doesn't *need* to do all that work to get case insensitivity under Windows, but it would be hard work convincing it internally. -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 392070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************