I've been meaning to try to put together a full set of notes on line break wierdness for years. This isn't it. But it might be a start.
Script works on PC but not UNIX
It took me way longer than it should of for me to figure out what's wrong with this interpreter path today:
#! /perl/bin/perl
I'd look at the line in vi. It looked fine. Then I'd go to the command line and type:
%/perl/bin/perl
which would give me the interpreter (wierd path to match where perl is on my windows box, ln'd over to /usr/bin/perl)
And eventually it dawned on me that since I'd never run this script on a unix box, it probably had PC line breaks. In the old days, I would have seen this:
#! /perl/bin/perl^M
But I guess vi or vim or whatever is on the box is smarter than it used to be. Not me though. How many times have I stubbed my toes on this?
At least I'm smart enough to use Textpad. Save As, select Unix as the file type, and I'm up and running again. In utopia, there will only be one kind of line break. That's all I'm saying.