On 17/02/11 10:34 +0100, Vít Ondruch wrote:
Hello,
Is there some guideline how shebang should look? There are commonly used
two versions:
1) #!/usr/bin/env ruby
2) #!/usr/bin/ruby
I like the first version, because it allows more freedom and usage of
'environment-modules' for example. Nevertheless also the second variant
has its advantages, e.g. reliable tool chain is assured even if
environment changes.
Any thoughts on this?
I would prefer the first one, because in Fedora, Ruby interpreter is always
in *known* place (/usr/bin/ruby).
There was also some tries[1] to actually prohibit use of #!/usr/bin/env completely
in Fedora packaging.
Also FSH guarantee some interprets in /usr/bin, but AFAIK Ruby is not
there[2] yet. Maybe it will get there in next release.
[1]
http://lists.fedoraproject.org/pipermail/packaging/2009-July/006248.html
[2]
http://www.pathname.com/fhs/pub/fhs-2.3.html
-- Michal
Vit
_______________________________________________
ruby-sig mailing list
ruby-sig(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/ruby-sig
--
--------------------------------------------------------
Michal Fojtik, mfojtik(a)redhat.com
Deltacloud API:
http://deltacloud.org
--------------------------------------------------------