Most common #! format

Paul Jackson pj at sgi.com
Wed Mar 1 23:34:53 CET 2000


Don't know which is the most common, but:

    #!python

is a likely candidate for the least common.  

That's because this '#!' interpreter syntax requires the
full path (or at least a path relative to the current working
directory) of the interpreter.

That is, it doesn't to $PATH (execvp or execlp) path searches.

--

See also a thread in comp.lang.python, late April 1988,
entitled:

    Advantages of #!/bin/env python?

which discusses the pros and cons of these alternatives.
-- 

=======================================================================
I won't rest till it's the best ...	   Software Production Engineer
Paul Jackson (pj at sgi.com; pj at usa.net) 3x1373 http://sam.engr.sgi.com/pj



More information about the Python-list mailing list