Re: shebang for python scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 2012-04-15 07:03, Martti Kühne wrote:
> #!/usr/bin/env python2 and #!python2 in my experience have exactly the same
> effect, so all I can do is ask you what differences you found and then we could

Nobody is talking about "#!python2", but about "#!/usr/bin/python2".

The former, "#!python2", is actually equivalent to "#!./python2"; i.e.
the one in the current directory.

The difference between "#!/usr/bin/python2" and "#!/usr/bin/env python2"
becomes obvious when you have multiple `python2`s in your $PATH.

-- 
Mantas M. <grawity@xxxxxxxxx>


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux