Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Be aware of case insensivity in the Terminal UNIX
Beware of case-insensitivity in filenames when working from the Unix command line. In OS versions 10.2.8 and earlier (and on more than one machine), I've always had the following curious messages show up when I repair disk permissions:

Permissions differ on ./usr/share/man/man3/DB.3,
  should be -rw-r--r-- , they are -r--r--r--  
Owner and group corrected on ./usr/share/man/man3/DB.3 
Permissions corrected on ./usr/share/man/man3/DB.3 
Permissions differ on ./usr/share/man/man3/db.3,
  should be -r--r--r-- , they are -rw-r--r--  
Owner and group corrected on ./usr/share/man/man3/db.3 
Permissions corrected on ./usr/share/man/man3/db.3 
So without looking more closely at the man3 directory, I deleted the db.3 file from the command line. But after doing so, I couldn't find my DB.3 file anymore!

Some of you may remember that the Unix side of Mac OX is not as strict with case-sensitivity as other flavors of Unix. I had deleted the DB.3 when I issued the rm db.3 command. Luckily, I was able to copy the DB.3 file from my back-up archive. Being that it's a manpage file, it isn't all that important. I still don't know, though, why Disk Utility would try to correct the permissions for db.3, and "correct" it to be different from DB.3. I do not know if Disk Utility in Pather exhibits this behavior.

    •    
  • Currently 2.50 / 5
  You rated: 5 / 5 (6 votes cast)
 
[4,770 views]  

Be aware of case insensivity in the Terminal | 1 comments | Create New Account
Click here to return to the 'Be aware of case insensivity in the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
issue is with HFS+, not the OS
Authored by: LouieNet on Nov 11, '03 09:21:07PM
A helpful reader wrote to me:
Mac OS X -- as most UNIX-systems -- IS case sensitive. Even in Finder, but... the HFS+ format used for the Mac OS startup disk is not. It's that simple. If you use UFS formatted disks you'll notice that. Case sensitivity does not depend on the OS, but on the format of the file system.

However, I would not recommend to install Mac OS X on an UFS-disk. It might work, but there are still typical Mac components that depend on a resource fork, and therefore only can exist in a HFS+ file system (such as the classic font suitcases).

Hey, you can post this as a reply to your own post :) if you like.

Cheers,

Yoshi
I admit that I had known all this, and was just a little sloppy in defining the actual reason the issue exists. Plus, I was forgetful at the time when I did the "rm". Louie

---
G4 cube, 1152M RAM, OS X Server 10.2.8
17" Powerbook G4, 1G RAM, OS X 10.2.8

[ Reply to This | # ]