[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add /usr/bin/env by default in guixsd?
From: |
huang_ying_caritas |
Subject: |
Re: Add /usr/bin/env by default in guixsd? |
Date: |
Sun, 05 Feb 2017 21:56:51 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Hi, Ludo,
address@hidden (Ludovic Courtès) writes:
> Hi!
>
> Sorry for the delay. I secretly hope somebody would answer, but this is
> such a hot topic that nobody dared. ;-)
>
> "Huang, Ying" <address@hidden> skribis:
>
>> It is a common practice to use /usr/bin/env in script shabang to use the
>> interpreter find in PATH. For example, something as follow,
>>
>> #!/usr/bin/env python
>>
>> Although it is not necessary for scripts packaged in guix, if the
>> scripts are written by a user for his own usage and he don't want to
>> package it, it is good to have /usr/bin/env available. In this way, the
>> interpreters in ~/.guix-profile/bin will be used.
>>
>> So how about add /usr/bin/env by default in guixsd?
>
> For the record this has been discussed in the past:
>
> https://lists.gnu.org/archive/html/guix-devel/2015-11/msg00414.html
Thanks a lot for being patient.
> There was no clear consensus.
>
> Of course there are simple ways to add it, several of which were given
> in the thread.
>
> The subject does come up every once in a while though, so we really need
> to address it one way or another. :-)
>
> First we need a simple ‘special-files’ service or something (for /bin/sh
> and /usr/bin/env).
>
> Then the whole battle will be about what the default should be. I used
> to be affiliated with the “no way!” party on this topic, but I
> considering changing my mind. :-) Especially that it does not matter
> that much, after all.
That sounds great for me! Thanks!
> Ricardo, anyone, thoughts?
>
> Ludo’.
Best Regards,
Huang, Ying