Shebang line on Windows?

Michael Torrie torriem at
Mon Feb 25 18:18:44 CET 2013

On 02/25/2013 06:14 AM, Dave Angel wrote:
> It's not Python that needs dos2unix, it's bash or equivalent.  For some 
> reason, bash shebang processing still isn't tolerant of a trailing cr on 
> the line. Python doesn't care.

Actually, the shell isn't involved in parsing the shebang line at all.
That's actually done in the kernel by the program loader.  So it's the
kernel that has a problem with it; wonder if Linus would accept a patch
to ignore the tailing CR?

More information about the Python-list mailing list