Making Programs Executable

Kragen Sitaker kragen at
Sat Jun 1 02:50:24 CEST 2002

VanL <vlindberg at> writes:
> In vi, instead of
> !#/usr/bin/env python

You mean #!, not !#.
> you will see
> !#/usr/bin/env python^M

Unless you're using vim, like any sane vi user on Slackware or Red Hat
will.  Vim will happily conclude you're editing a file with CRLF line
endings, stripping them on input and adding them again on output.

More information about the Python-list mailing list