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

Miroslav Suchy msuchy at redhat.com
Mon Jul 23 19:35:36 UTC 2012


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.

Mirek




More information about the katello-devel mailing list