shebang strange thing...

Van Gale news at
Sat Jun 21 08:31:54 CEST 2003

Erik Max Francis wrote:
> Van Gale wrote:
>>There's a very subtle bug (feature?) in bash (and maybe other shells?)
>>that will generate this error if the line is terminated with a CR/LF
>>pair instead of just a linefeed.
> Yes, it's common to other shells.  It's not a feature, but it's not a
> "bug" per se -- using CR LF terminated text files on Unix is operator
> error.

Well guess what, it happens.  It even happens when the "operator" is 
aware of the problem.  So lets not call it a bug, and instead call it 
poor programming because the error message is not only incorrect, but 
will also waste a fair amount of time of someone trying to debug the 
problem because it points them in the wrong direction.

More information about the Python-list mailing list