* Unwanted case-insensivity in file name globbing
@ 2015-11-10 3:15 Paul
2015-11-10 13:19 ` Jan Bruun Andersen
0 siblings, 1 reply; 5+ messages in thread
From: Paul @ 2015-11-10 3:15 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Unwanted case-insensivity in file name globbing
2015-11-10 3:15 Unwanted case-insensivity in file name globbing Paul
@ 2015-11-10 13:19 ` Jan Bruun Andersen
0 siblings, 0 replies; 5+ messages in thread
From: Jan Bruun Andersen @ 2015-11-10 13:19 UTC (permalink / raw)
To: cygwin
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 <Paul.Domaskis@gmail.com> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Unwanted case-insensivity in file name globbing
@ 2015-11-10 23:09 Paul
0 siblings, 0 replies; 5+ messages in thread
From: Paul @ 2015-11-10 23:09 UTC (permalink / raw)
To: cygwin
Ken Brown <kbrown <at> cornell.edu> wrote:
> ...don't forget about the registry setting you need in order to turn
> on case sensitivity:
>
> http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-
casesensitive
That's OK, I just need case-insensitive file globbing. I don't want
to mess with the actual case sensitivity in Win 7 cuz who knows
consequences (human or software) can result. Besides, I don't have
permissions to change the registry, though I appreciate the awareness.
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Unwanted case-insensivity in file name globbing
2015-11-10 15:45 Paul
@ 2015-11-10 16:21 ` Ken Brown
0 siblings, 0 replies; 5+ messages in thread
From: Ken Brown @ 2015-11-10 16:21 UTC (permalink / raw)
To: cygwin
On 11/10/2015 10:44 AM, Paul wrote:
> Jan Bruun Andersen <jan_bruun_andersen <at> jabba.dk> wrote:
> | 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).
>
> Thanks, Jan. I was actually looking at that page, and totally glossed
> over the posix switch. Will try it (the machine is elsewhere).
And don't forget about the registry setting you need in order to turn on
case sensitivity:
https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-casesensitive
Ken
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Unwanted case-insensivity in file name globbing
@ 2015-11-10 15:45 Paul
2015-11-10 16:21 ` Ken Brown
0 siblings, 1 reply; 5+ messages in thread
From: Paul @ 2015-11-10 15:45 UTC (permalink / raw)
To: cygwin
Jan Bruun Andersen <jan_bruun_andersen <at> jabba.dk> wrote:
| 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).
Thanks, Jan. I was actually looking at that page, and totally glossed
over the posix switch. Will try it (the machine is elsewhere).
I realize that cygdrive maps all the letter drives, but I'm trying to
cut down on the typed text.
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-11-10 23:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-10 3:15 Unwanted case-insensivity in file name globbing Paul
2015-11-10 13:19 ` Jan Bruun Andersen
2015-11-10 15:45 Paul
2015-11-10 16:21 ` Ken Brown
2015-11-10 23:09 Paul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).