33
6
I switched to Lion a while back and just noticed that when I save a text file in TextEdit, it uses LF for line breaks. I looked around everywhere I could think of on my Lion computer and could not find any evidence of files using CR for line breaks even though I remember that Macs always used to use CR despite Unix using LF and Windows using CR+LF. When I learned that OS X was based on Unix, I even checked on my Snow Leopard and was disappointed that it stilled used CR.
So did Lion switch to using LF?
The strangest thing is I searched all over the web and cannot find any evidence of Lion using LF.
Thank you for this answer! I'm trying to add TI-89 programs to my Git repository that all end in
– NobleUplift – 2019-08-30T17:30:13.030\rand Git is having trouble with it.I'm not sure if I can help you with your question though. If it's not answered by my post, consider editing it to have it reopened. – slhck – 2019-08-31T12:14:49.013
I specifically remember on Snow Leopard it used CR. – Matt – 2012-06-20T20:03:48.137
1I am on Snow Leopard and it does not use carriage returns, neither in TextEdit, TextWrangler, TextMate, vim, emacs, nano, when echoing to a file, et cetera. And there is semi-authoritative reference on that, so you must have set your editor on Snow Leopard to use carriage returns then. – slhck – 2012-06-20T20:06:33.967
8I figured it out: The problem is with Microsoft Excel. When you save a CSV file on a Mac, it uses CR. – Matt – 2012-06-20T20:09:19.423
5Well, talk about Microsoft software on OS X. I was aware of that problem with Excel's CSV files though, I ran into issues with that myself. – slhck – 2012-06-20T20:11:14.133