Making Programs Executable

Kragen Sitaker kragen at pobox.com
Fri May 31 20:50:24 EDT 2002


VanL <vlindberg at verio.net> 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