[X-Unix] Why didn't Apple change the line break ?

Eugene Lee list-themacintoshguy at fsck.net
Tue Sep 21 07:40:07 PDT 2004


On Tue, Sep 21, 2004 at 05:09:51AM -0700, Craig wrote:
: 
: This may be unrelated, but why is it that on OS X, if you redirect the
: output of ls or some other commands into a text file then open the
: file with a text editor, you see something like this:
: 
: [01;34malias sketchbook examples
: ls.txt
: new pix
: oreilly.com -- Online Catalog- PDF Hacks.webloc
: wiretap.sit
: zip code article-LVRJ.html
: zip code map-LVRJ.gif
: 
: 
: which should, & if you cat the file does, look like this:
: 
: alias sketchbook examples
: ls.txt
: new pix
: oreilly.com -- Online Catalog- PDF Hacks.webloc
: wiretap.sit
: zip code article-LVRJ.html
: zip code map-LVRJ.gif

You're not using a standard version of "ls".  Do this and report
what you see in a text editor:

	$ /bin/ls > files.txt


-- 
Eugene Lee
http://www.coxar.pwp.blueyonder.co.uk/



More information about the X-Unix mailing list