Are bash commands on OSX case insensitive? I type "which TR" and it shows /usr/bin/TR, though there is no such binary there. Same thing for other binaries, when capitalized. Or is Terminal.app maybe doing this translation? How do I turn this off?
|
This is actually a feature of the filesystem of your disk, not bash or Terminal.app. HFS+ (the Mac filesystem) is usually configured to be case insensitive but case preserving. This means that the file system will consider When you format a disk with HFS+ you can chose whether the file system should case sensitive or not. If you chose to format with UFS (Unix FileSystem) it is always case sensitive, AFAIK. To check whether a disk is case sensitive, run:
For example:
Look for the |
|||||||||||||||||
|
|
Take a look at your filesystem, as there are both case sensitive and case insensitive variations on HFS. The default is case insensitive, in which case it's not so much a case of BASH, but the underlying filesystem. You can test this by formatting a spare USB stick with the case sensitive option, and copying files over ato repeat your test, etc. |
|||
|
|
localeand completion-ignore-case / nocaseglob – bmike♦ Aug 17 '11 at 16:11