[katello-devel] Why #!/usr/bin/env ?

Jérôme Fenal jfenal at redhat.com
Wed Jul 25 12:57:45 UTC 2012


Le lundi 23 juillet 2012 à 21:35 +0200, Miroslav Suchy a écrit :
> Why do you guys prefer #!/usr/bin/env ?
> 
> I seen it twice in today pull requests and git grep show me it is used 
> several times in our code.
> 
> I understand it may put in game e.g /usr/local/bin/ with locally 
> compiled python/ruby. But is it what we want? Do we guarantee, that our 
> code will work with locally modified version of python/ruby?
> 
> I always used plain #!/usr/bin/python or #!/usr/bin/ruby as it gives me 
> more control and less bug reports.

See perlrun(1).

-- 
Jérôme Fenal, RHCE                        Tel.: +33 1 41 91 23 37
Senior Solutions Architect                Mob.: +33 6 88 06 51 15
Comptes stratégiques Finance et Public    Fax.: +33 1 41 91 23 32
http://www.fr.redhat.com/                       jfenal at redhat.com
Red Hat France SARL                    Siret n° 421 199 464 00064
Le Linea, 1 rue du Général Leclerc   92047 Paris La Défense Cedex
Red Hat Summit, JBoss World 2012    http://www.redhat.com/summit/




More information about the katello-devel mailing list