guix-devel
[Top][All Lists]
Advanced

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

Re: 01/01: services: Add ‘/usr/bin/env’ special file.


From: Marius Bakke
Subject: Re: 01/01: services: Add ‘/usr/bin/env’ special file.
Date: Sat, 07 Sep 2019 16:41:12 +0200
User-agent: Notmuch/0.29.1 (https://notmuchmail.org) Emacs/26.2 (x86_64-pc-linux-gnu)

Tobias Geerinckx-Rice <address@hidden> writes:

> Christopher,
>
> Christopher Baines 写道:
>> This seems to me like quite a big change, and I'd be interested 
>> in
>> knowing what your motivation was [1]?
>
> It's not, really.  It's equivalent to the impure /bin/sh that Guix 
> Systems already provide, but actually useful: ‘use 
> #!/usr/bin/env, not #!/bin/sh!’ was already a mantra when I wrote 
> my first shell script — and I'm not that young.
>
> There's no good argument for not being able to run the vast 
> majority of well-written scripts, out of the box, on Guix Systems.

If you are on Guix System and find that you need /usr/bin/env, you are
already a "power user": you are venturing outside of what is provided by
Guix alone.

At that point you are expected to read the manual.  Grepping for
/usr/bin/env there will show you exactly what you need to do.  Or
perhaps you decide that it would be better to create a G-exp or package
for the script.

For running arbitrary scripts we have 'guix environment': perhaps it
would make sense to add /usr/bin/env to `guix environment --container`?

Attachment: signature.asc
Description: PGP signature


reply via email to

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