delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/11/09/22:15:58

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:to:from:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=gT5
MNZVbn0W/Nyz3z/QbOGrC50r10mXDaGzGN5NE5WttqLGNGT2mj97YbLE+CV+lB0E
5Qjdyd0cZedZUlFMUpSv3x5Ri3CT/WlJdrycjZjfPIrqVvCXLfR5jMsk4OWR1Tr8
BPcehoK3E4m8bZ1SRhPjuI+FkxUhn+YdeJoQbn3g=
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:to:from:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; s=default; bh=jsAek9951
OWuVNEABqaZwKQRWc4=; b=Iy0FpE9UHCs3uF11WKF/K7cK1hEtGKTzssPR35Tem
hLV+Xy2EL2CjLv7yvL+bAeAjuCW0f8+54l0pgAlcHKxldtFypgd1upv4vn+f9bwj
MWKlUYCp0ZdN/K+aygWe0UPqAepFD0yN/Qe1HYca0kqBetOqd+yM+jSQz1Q8NFIz
jE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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.6 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Paul <Paul DOT Domaskis AT gmail DOT com>
Subject: Unwanted case-insensivity in file name globbing
Date: Tue, 10 Nov 2015 03:15:16 +0000 (UTC)
Lines: 32
Message-ID: <loom.20151110T041339-143@post.gmane.org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019