View Single Post
Old 05-10-2008, 01:07 PM   #2 (permalink)
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 3,388
Dysfunction is just really niceDysfunction is just really niceDysfunction is just really niceDysfunction is just really niceDysfunction is just really nice
Mac Specs: 15" mbp, too many ipods and other stuff
Edit:

Wait, you're saying that changing it to mac format removes that? Interesting, I've never bothered setting any file type within nano on the mac. Now I'm going to have to go try that out.

Yep, sure does. Infuriating too. Tried concatenating the file to another file, figured std out might resolve it, but same problem. Also tried editing it and saving it in textedit, that didn't work.

Actually, saving it as a mac format will not execute on my system even if I do a perl ./perlscript while DOS file formats do. I even tried editing the file in vi.

So I opened it in textwrangler, went to edit > document options and saw that it had a windows line ending (CRLF) changed it to Unix (LF) and saved. Had to chmod it, but now it works again


Lesson learned today, I'm going to continue to ignore the option to save as either DOS or Mac formatting in nano
__________________
mike
Warning: Sharp chisels are dangerous and should be handled with care. Dull chisels are even more dangerous and should be sharpened.
Got # ?

Last edited by Dysfunction; 05-10-2008 at 01:37 PM.
Dysfunction is offline   Reply With Quote