I was trying to copy some files with the same name, but different case, to the same directory.
See these steps:
~/tmp $ echo "First" > test
~/tmp $ echo "Second" > Test
~/tmp $ ls
test
~/tmp $ cat test
Second
What’s going on here?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s not from the Unix layer: it’s from the filesystem. Probably it is OSX runs on HFS+. No other Unix does. So that’s the difference. HFS+ is, by default, not case sensitive but is case preserving. You can re-fromat HFS+ as HFSX (case sensitive HFS+).