LPM: RE: RE: variable comparison not working

Joe Hourcle oneiros at dcr.net
Fri Jun 2 06:33:33 CDT 2000



On Thu, 1 Jun 2000, Tom Braun wrote:

> In case anyone is curious, Dr. Rietz nailed this problem on the head with
> his final suggestion.  I was reading the list of correct books from a text
> file which must have been written in Windows.  One file rewrite later (in
> Linux this time), and it works.  Funny, I assumed the extra line-feed
> sequence would have showed up in Emacs...   Guess I learned the hard way
> (and the long one) :)

This is what 'ascii' mode in FTP is for --

The uploading system translates line endings to an agreed upon standard (I
think it's \r\c or something like that), and the receiving system
translates that pattern to what it considers to be valid line endings.

You also tend to see it a lot when people upload perl scripts to a unix
box, and they keep getting 'file not found' messages when they run it.
You open the file in vi, and see the first line is:

	#!/usr/local/bin/perl^M

-----
Joe Hourcle




More information about the Lexington-pm mailing list