python 2.0 won't run scripts with \r\n line termination on RH7?
Cesar Rabak
csrabak at uol.com.br
Tue Feb 13 09:45:23 EST 2001
Steve Purcell wrote:
>
> Mike Carifio wrote:
> > So here's my solution, crufty though it is. I created a link to the python
> > executable named 'python^M', in other words I added the carriage return to
> > the end of the file name so bash would find it.
>
> Ay-ay-ay...
>
> Ingenious lateral thinking, but...
>
> I can't imagine why people freak out when they can't write UNIX scripts that
> don't have UNIX line endings! If the first line starts '#!' it should finish
> '\n', not '\r\n'. If it doesn't, fix the file, not the OS.
>
So elaborating, on your reasoning, Steve, I think the 'sollution' would
be the OP to have a kind of "header" or macro in his favorite editor
which inserts the correct line in whatever OS be the script being
written.
just my .01999...
More information about the Python-list
mailing list