Dne 17.2.2011 11:26, Michal Fojtik napsal(a):
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
May be I should send this question to fedora-devel, because it is more
generic question then just for Ruby and it should be specified somewhere.
And of course the reasons stated in [1] makes much sense (and it is
aligned with my 'reliable tool chain' note).
Vit
[1]
https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemP...