Shebang line on Windows?

Michael Torrie torriem at
Tue Feb 26 03:08:08 CET 2013

On 02/25/2013 05:52 PM, Steven D'Aprano wrote:
> Nobody is asking anyone to support "every Windows wart out there". 
> Windows-style line separators are not a wart, it is a convention used by 
> many, many tools, operating systems, data formats (e.g. email), etc. It 
> is an old, old convention, going back to teletype days and so predating 
> not just Windows but also Unix. So in fact it is *Unix* that broke the 
> convention, and Unix line separators which is the "wart" (or at least a 
> regression).

That's really interesting.  I didn't know that before.  It does make
sense.  As much as I love unix, it really originated as a hack in many
senses.  With that in mind I think Linux should allow a trailing CR in
the shebang line, even if other unix OS's don't.  Of course it's a minor
thing, and there are ways of dealing with it.

This is a reminder to me how much we Linux users look at Windows as a
quaint anomaly with it's apparently backwards ways of doing things (like
backslash directory separators, like CP/M did), but forget it is still
the dominant platform out there for general purpose computing.  So it
really could be argued that Linux indeed is the backward OS when it
comes to these kind of incompatibilities (though I still think I like it

More information about the Python-list mailing list