unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: huang_ying_caritas@163.com
To: ludo@gnu.org
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Add /usr/bin/env by default in guixsd?
Date: Sun, 05 Feb 2017 21:56:51 +0800	[thread overview]
Message-ID: <87fujsg2qk.fsf@163.com> (raw)
In-Reply-To: <878tpkkfen.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 05 Feb 2017 13:09:36 +0100")

Hi, Ludo,

ludo@gnu.org (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" <huang_ying_caritas@163.com> 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

  reply	other threads:[~2017-02-05 13:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-30 13:33 Add /usr/bin/env by default in guixsd? Huang, Ying
2017-02-05 12:09 ` Ludovic Courtès
2017-02-05 13:56   ` huang_ying_caritas [this message]
2017-02-08 15:21     ` Ludovic Courtès
2017-02-09  0:31       ` Huang, Ying
2017-02-09 14:22       ` Alex Kost
2017-02-05 19:28   ` Alex Kost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fujsg2qk.fsf@163.com \
    --to=huang_ying_caritas@163.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).