What's the difference? 
Author Message
 What's the difference?

Hash: SHA1

    >> Whats the difference between :
    >> #! /usr/bin/env python
    >> and :
    >> #! /usr/bin/python

    David> the first is using the env program to divine the location
    David> of python using the users environment. The second is a
    David> direct path to python. The first is the safest bet if you
    David> do not know where python will be. For example, many people
    David> put python in /usr/local/bin. The first would still work,
    David> but the second would need to be changed.


But it should be noted that the second form should be used for scripts
that have to keep an eye on security...  /usr/bin/env uses the user's
PATH, so it could be possible to get the user to execute a different
script than the one intended.

And absolute path avoids this.

Bye, J

- --

          My WebHome: http://www.*-*-*.com/
                    Bill Gates brought you Windows.
                Linus brought you the whole DAMN HOUSE!
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Use Mailcrypt and GnuPG < http://www.*-*-*.com/ ;


Sat, 05 Jul 2003 01:02:24 GMT  
 [ 1 post ] 

 Relevant Pages 

1. beginner's question, differences among Smalltalk implementations

2. Standard or professional - what's the differences

3. What's the difference between bof() and eo()

4. What's The Difference ?

5. What's the difference between IO and File

6. What's the difference between Cosmo1.0 Player and Cosmo2.0 Player

7. What's The Difference ?

8. what's the difference?

9. What's the difference?

10. What's the difference between...

11. What's the difference between POINTER and ALLOCATABLE

12. What's the difference?


Powered by phpBB® Forum Software