#!/usr/bin/python or #!/usr/bin/env python?

Aahz aahz at pythoncraft.com
Wed Aug 9 14:00:22 EDT 2006


In article <fj5Cg.2658$No6.51984 at news.tufts.edu>,
John Salerno  <johnjsal at NOSPAMgmail.com> wrote:
>
>I understand the difference, but I'm just curious if anyone has any 
>strong feelings toward using one over the other? I was reading that a 
>disadvantage to the more general usage (i.e. env) is that it finds the 
>first python on the path, and that might not be the proper one to use. I 
>don't know if that's a real issue most of the time, but it's at least 
>something to consider.

The main argument against the env method is that I've seen a fair number
of sysadmins claim that it's less secure.  I'm not competent to judget
that claim myself, but I prefer to play safe and stay away from env.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it."  --Brian W. Kernighan



More information about the Python-list mailing list