public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jan Bruun Andersen <jan_bruun_andersen@jabba.dk>
To: cygwin@cygwin.com
Subject: Re: Unwanted case-insensivity in file name globbing
Date: Tue, 10 Nov 2015 13:19:00 -0000	[thread overview]
Message-ID: <CAA3tTg_EUNv6J0Jy3c1HfJ4O9f_ZxJWE3muaD1CNeAM40M9t3Q@mail.gmail.com> (raw)
In-Reply-To: <loom.20151110T041339-143@post.gmane.org>

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

  reply	other threads:[~2015-11-10 13:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-10  3:15 Paul
2015-11-10 13:19 ` Jan Bruun Andersen [this message]
2015-11-10 15:45 Paul
2015-11-10 16:21 ` Ken Brown
2015-11-10 23:09 Paul

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAA3tTg_EUNv6J0Jy3c1HfJ4O9f_ZxJWE3muaD1CNeAM40M9t3Q@mail.gmail.com \
    --to=jan_bruun_andersen@jabba.dk \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).