Re: [PATCH] Use env to find python
Michał Górny <[email protected]>
| Newsgroups | gmane.linux.gentoo.portage.devel |
|---|---|
| Organization | Gentoo |
| Message-ID | <[email protected]> |
On Wed, 2020-06-17 at 10:18 +0200, Ulrich Mueller wrote:
> > > > > > On Tue, 16 Jun 2020, Michał Górny wrote:
> > '/usr/bin/env python' (with no extra options) is the portable shebang.
>
> I still think this is a gross hack. You want your script to use the
> correct interpreter (which is in /usr/bin, or the path substituted for
> it at install time), not some random binary which happens to be found
> in the user's ${PATH}.
>
How do you presume what the correct interpreter is, and why do you
presume that users put 'random binaries' in their PATH? What if
the user needs to override 'correct interpreter'? Requiring people to
overwrite executables in /usr/bin sounds like a 'gross hack'.
--
Best regards,
Michał Górny
signature.asc
(application/pgp-signature, 618 B)
-----BEGIN PGP SIGNATURE----- iQGTBAABCgB9FiEEx2qEUJQJjSjMiybFY5ra4jKeJA4FAl7p4h5fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEM3 NkE4NDUwOTQwOThEMjhDQzhCMjZDNTYzOUFEQUUyMzI5RTI0MEUACgkQY5ra4jKe JA40fQgAmPSUheUktwkL+Dc2Ij01u/NZM1yp8X4fea9/TDrpZwAZZPpR1lVpXxeg P51PaZocyQprBOjP7ZI6jsz7nmVaKg+Zkq2XCTFx7WWXYHmadZ5xo/BBuADQ1x+h z4cuOeX9UtPhLygDZVxjdGIRM1nZlavUq8oeMTfEHBoPuXio/rvZVz9hw1wStvZS h4GPYAoZmdrxLE5Cg7MoOxpPNEEqF+M1m5iSYhhhOqmrLrxvqrxc2YgArHPfjazH DUEGarn5cO1km1EKN4x6pk6xnQjPWhBxr/6dXb8fX55KUL7nm9/lU8WdpBYuiFGj Q7gO6QgXqoT2pIW9uGMUtOsAPTSF6g== =qkxU -----END PGP SIGNATURE-----