My Terminal is not case sensitive

2 replies [Last post]
mdtophd
User offline. Last seen 6 years 36 weeks ago. Offline
Joined: 08/30/2011

Dear PCFB experts,

I'm using Mac OS 10.7 and I found that programs in Terminal including Unix, Python, MySQL are all "case insensitive". Can I fix this glitch?

Thank you very much,

Tai

mdtophd
User offline. Last seen 6 years 36 weeks ago. Offline
Joined: 08/30/2011
Correction

Case-insensitiveness happens in Python 2.7.1 and MySQL 5.5.15 but no in Unix.

pcfb
User offline. Last seen 4 days 22 hours ago. Offline
Joined: 08/04/2010
Case sensitivity

Case sensitivity is hard to pin down. You just have to assume that the system will be case sensitive, but not rely on it. In other words, be consistent and use the appropriate case (lower) for Unix and Python commands (MYVAR=1 and Print are not the same as myvar=1 and print), but don't try to name two variables or two folders the same thing, differentiated only by case. (In MySQL, the custom is to type the commands in ALL CAPS, but it works with lower case).

For file and folder names, it actually depends on the options that were selected when your hard disk was first formatted. In Lion, the default for this is apparently not case sensitive.

Can you give an example of where this has caused you trouble? We would be interested to hear about more good examples.

Thanks for raising an interesting question.