Topic: UNIX Line break style

I was wonder if someone could explain, or link me to information on the UNIX line break style. Thanks.

Re: UNIX Line break style

On UNIX/Linux/BSD systems, a line break is made up of one character, a line feed (\n). On Windows, a line break is a carriage return followed by a line break (\r\n). On old MacOS systems, a line break is just a carriage return (\r).

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: UNIX Line break style

What about Mac OSX? Being UNIX-based I would think it would be \n now...?

Re: UNIX Line break style

Yes, MacOS X uses \n linebreaks.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

5

Re: UNIX Line break style

It's only Windows in these days who are a bit old-fasioned and doesn't convert to line-feed (\n). tongue