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:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=d6KrnLA RPN2P6RAUpNg0DvAiMTQzCJ03mxDKxMW4aPa1lXVFXrNysUAE6bRESA8OdZjAi4n TRmrqTUQ4cqxFOY234iivVxtgSz9k86N3qvN/aa9MNBfpI20N6HKlo64/iGcrEl+ 51M6uX3rDzQPN2xMRIIKZWbKqhLsd4e/F+a4= 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:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=Z9xRW15gyGdxB 8F5zKhsK7RFdro=; b=vvpVTk9eJWeIaDEVSTy0WoNGURGJYQW7AWWkTBu0+BRRA SZRX+/8diVeSvu4/7jdcWX1l0iizERwb7JJG/pD2yTUbsmJ1lTtmFMRPD7VfnbZj VDHPcXWeAE1/qWPkhFgmLecacpLl+wFNhrExcxl34utfjBEZD4neTdQ36PqXyM= 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=0.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-yk0-f180.google.com X-Received: by 10.13.233.199 with SMTP id s190mr3203186ywe.316.1447161574036; Tue, 10 Nov 2015 05:19:34 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Jan Bruun Andersen Date: Tue, 10 Nov 2015 14:18:54 +0100 Message-ID: Subject: Re: Unwanted case-insensivity in file name globbing To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Seems overly complicated for me. My current fstab looks like this: # /etc/fstab # # This file is read once by the first process in a Cygwin process tree. # To pick up changes, restart all Cygwin processes. For a description # see https://cygwin.com/cygwin-ug-net/using.html#mount-table # Device- Mount- FS-type Options Ignored # name point # ------------- --------------- --------------- ----------------------- -------------------- C:/Users /home ntfs binary,posix=1,user 0 0 none / cygdrive binary,posix=0,user 0 0 If I remember correctly the cygdrive thing is what automatically maps all my C:. D:, E:, etc drives to /C, /D, E and so on. The magic with posix is described here: https://cygwin.com/cygwin-ug-net/using.html#mount-table posix=0 - Switch off case sensitivity for paths under this mount point (default for the cygdrive prefix). posix=1 - Switch on case sensitivity for paths under this mount point (default for all other mount points). Regards, On 10 November 2015 at 04:15, Paul wrote: > I just replicated my Cygwin setup on Win 7 (64 bits) onto another Win 7 64- > bit machine, including /etc/fstab > > c: /c ntfs binary,posix=0,user,auto > d: /d ntfs binary,posix=0,user,auto > e: /e ntfs binary,posix=0,user,auto > f: /f ntfs binary,posix=0,user,auto > g: /g ntfs binary,posix=0,user,auto > i: /i ntfs binary,posix=0,user,auto > o: /o ntfs binary,posix=0,user,auto > r: /r ntfs binary,posix=0,user,auto > s: /s ntfs binary,posix=0,user,auto > > So my home directory "~" is "C:\cygwin64\home\My.User.Name". > > I noticed that when I issue a command involving a file name pattern, it is > not case sensitive in that directory. For example, "ls -d [A-Z]*" will > return the folder "cat". Web searching revealed that it could be the bash > shell option nocaseglob, but I confirmed that in my case, it is not set: > > $ shopt -p nocaseglob > > shopt -u nocaseglob > > I am also puzzled by the fact that when I cd to a subdirectory, the > unwanted case insensivity is no longer present. I thought that I did > something wierd in replicating my Cygwin setup, but when I tested my > original setup on the 1st computer, I found the same selective case > insensitivity. > > What other setting might cause this? How can I get bonafide Unix behaviour > in the file name globbing? > > > -- > 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 > -- 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