guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add /usr/bin/env by default in guixsd?


From: Ludovic Courtès
Subject: Re: Add /usr/bin/env by default in guixsd?
Date: Sun, 05 Feb 2017 13:09:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

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

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.

Ricardo, anyone, thoughts?

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]