Originally posted by ridefree
How does OSX deal with the difference in line endings between Mac text files and Unix text files?
Wow! That was a good question!
For years I've been a Mac guy doing Web stuff for Unix servers. That means I've always had to be carful to save my files with Unix line breaks.
So I conducted a few little tests:
1) I opened some files burried within /System and /Library. To my surprise these files all had Mac line breaks.
2) Next I created a file with pico (sorry to admit my vi skills are poor). Then I opened this file with BBedit to see what had happened. To my surprose this new text file also had Mac line breaks.
3) So I saved this file with Unix line breaks and opened it up again in pico. pico opened it without complaint, but again saved it with Mac line breaks.
So to my surprise Mac line breaks are still Mac line breaks. I was really hoping that we'd now be using Unix line breaks now.
So I guess I still have to carefully convert these when publishing cgi's and such to our Solaris boxes. Grrr....