From unknown Mon Aug 18 02:38:46 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#35910] [PATCH] services: Add =?UTF-8?Q?=E2=80=98/usr/bin/env=E2=80=99?= special file. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 26 May 2019 02:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35910 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35910@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15588364222489 (code B ref -1); Sun, 26 May 2019 02:08:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 May 2019 02:07:02 +0000 Received: from localhost ([127.0.0.1]:50052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUiYw-0000e4-GW for submit@debbugs.gnu.org; Sat, 25 May 2019 22:07:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUiYv-0000dc-Bo for submit@debbugs.gnu.org; Sat, 25 May 2019 22:07:01 -0400 Received: from lists.gnu.org ([209.51.188.17]:43690) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hUiYq-0000yh-A1 for submit@debbugs.gnu.org; Sat, 25 May 2019 22:06:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUiYp-00020F-5g for guix-patches@gnu.org; Sat, 25 May 2019 22:06:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hUiYo-0000xS-5Y for guix-patches@gnu.org; Sat, 25 May 2019 22:06:55 -0400 Received: from tobias.gr ([2001:470:7405::1]:39384) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hUiYn-0000vd-Gd for guix-patches@gnu.org; Sat, 25 May 2019 22:06:54 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 5e183ecb for ; Sun, 26 May 2019 02:06:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=2018; i=me@tobias.gr; bh=aSCGyqRvr HNNiNRLILQfqL2GXgHNdUvEHp19qmVvy2w=; b=m/rZm2aAgdHeFoNyETGgeRcTg ktTAz+EJqb5mNym0pkmfYjmrOhhHS0Lmd0NE50UdZHt7uhMIdxszuPlizdgsXkdg 1CDyyR36YibS2ezf77JYQc6r7dzEoUzGG+ClSCf7EBJCi02KBltP51s4PIpB76j7 Hq9/+YfHGidzmAKCwbzE2dNeTOtlMthvQJ7cYTN00cCJju9PpNkrUOqDIu3Wt8v4 WratRpEU/LL4l4B/oGeKQsMMgaybsEWTogIHDoe5HXTmyFCWut9f8I0qtkLoBOSo kLARG4Wc8Yw+ZG+/fdPqVGjl55nG/r7MfTvde1koRjak0SbdopvrWKMq3NJIA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id e799f07c (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Sun, 26 May 2019 02:06:43 +0000 (UTC) From: Tobias Geerinckx-Rice Date: Sun, 26 May 2019 04:06:35 +0200 Message-Id: <20190526020635.20780-1-me@tobias.gr> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:470:7405::1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) * gnu/services/base.scm (%base-services): Add ‘/usr/bin/env‘ to special-files-service-type. --- Guix, I didn't even realise this was ‘missing’. Is there any reason not to include it next to /bin/sh? Sure, it's not pure, but then why provide /bin/sh when nowadays /usr/bin/env is both more common, more flexible,> Feel free to gently enlighten me. Kind regards, T G-R gnu/services/base.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/services/base.scm b/gnu/services/base.scm index f709ca5519..444e48f137 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -8,6 +8,7 @@ ;;; Copyright © 2016 Ricardo Wurmus ;;; Copyright © 2018 Mathieu Othacehe ;;; Copyright © 2019 Efraim Flashner +;;; Copyright © 2019 Tobias Geerinckx-Rice ;;; ;;; This file is part of GNU Guix. ;;; @@ -2382,6 +2383,8 @@ to handle." (service special-files-service-type `(("/bin/sh" ,(file-append (canonical-package bash) - "/bin/sh")))))) + "/bin/sh")) + ("/usr/bin/env" ,(file-append (canonical-package coreutils) + "/usr/bin/env")))))) ;;; base.scm ends here -- 2.21.0 From unknown Mon Aug 18 02:38:46 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#35910] [PATCH] services: Add =?UTF-8?Q?=E2=80=98/usr/bin/env=E2=80=99?= special file. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 26 May 2019 03:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35910 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35910@debbugs.gnu.org Received: via spool by 35910-submit@debbugs.gnu.org id=B35910.15588395627792 (code B ref 35910); Sun, 26 May 2019 03:00:03 +0000 Received: (at 35910) by debbugs.gnu.org; 26 May 2019 02:59:22 +0000 Received: from localhost ([127.0.0.1]:50095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUjNZ-00021c-M5 for submit@debbugs.gnu.org; Sat, 25 May 2019 22:59:21 -0400 Received: from tobias.gr ([80.241.217.52]:36762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUjNV-00021I-WD for 35910@debbugs.gnu.org; Sat, 25 May 2019 22:59:20 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 723d3b6a for <35910@debbugs.gnu.org>; Sun, 26 May 2019 02:59:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:references:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=d/3jbYuOX400EJEbLh1m9l Ry298GwNT8j1guLf8sFLk=; b=D+KJmZwwT3EyzX6YYbPtQYqFBaOZ6JP5LbDouh PKYXmwzzdfi6AVCpHMjOaa9ymHzwAet5vVybU47f3cLdvVX+WcrvaUu5TiVBKltC VL8KNZf6dahlB4UVD0j8tEfkNyLzUo8WdW/ZvM+W0dYSiFf0pOoF0RLcjtHCYdlU brVzht2dbtrdDKYCXbvJo+TL+pFjaz1q2LXvUZpy9q88s089ZcPEbXVIuX45Y5o3 0/R/s9cUEvWwUI+IIAJx+paHAzjgyMNLTwjT8QKk23tNdtu+awRw60xQQU7+1g8G FMvALL4JM3eTi2JLSwouRiTJ0HugFn1VGormylKMq4XFaBCg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id d308dbc1 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <35910@debbugs.gnu.org>; Sun, 26 May 2019 02:59:12 +0000 (UTC) From: Tobias Geerinckx-Rice References: <20190526020635.20780-1-me@tobias.gr> In-reply-to: <20190526020635.20780-1-me@tobias.gr> Date: Sun, 26 May 2019 04:59:11 +0200 Message-ID: <87h89hq5ts.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; format=flowed Tobias Geerinckx-Rice wrote: > - "/bin/sh")))))) > + "/bin/sh")) > + ("/usr/bin/env" ,(file-append > (canonical-package coreutils) > + > "/usr/bin/env")))))) 'course this won't work unless you, also, have the hunk #:use-module ((gnu packages base) - #:select (canonical-package glibc glibc-utf8-locales)) + #:select (canonical-package coreutils glibc glibc-utf8-locales)) accidentally placed in another commit, which is unlikely. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXOoBAAAKCRANsP+IT1Vt eQ+vAP4nEocu1EWQ6+v5RFPVmmrIEhQA2djc26FVqEjQDSJNTQEAmOJY7hnrLL1t iAGQuC73TOvTm/NACCGjG1sR+WD4Sww= =QMRS -----END PGP SIGNATURE----- --=-=-=-- From unknown Mon Aug 18 02:38:46 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#35910] [PATCH] services: Add =?UTF-8?Q?=E2=80=98/usr/bin/env=E2=80=99?= special file. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 29 May 2019 21:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35910 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tobias Geerinckx-Rice Cc: 35910@debbugs.gnu.org Received: via spool by 35910-submit@debbugs.gnu.org id=B35910.155916399910661 (code B ref 35910); Wed, 29 May 2019 21:07:02 +0000 Received: (at 35910) by debbugs.gnu.org; 29 May 2019 21:06:39 +0000 Received: from localhost ([127.0.0.1]:60075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hW5mQ-0002lt-TK for submit@debbugs.gnu.org; Wed, 29 May 2019 17:06:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hW5mO-0002ld-SI for 35910@debbugs.gnu.org; Wed, 29 May 2019 17:06:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hW5mE-0005Iw-TH; Wed, 29 May 2019 17:06:26 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=33828 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hW5mD-0007U1-GV; Wed, 29 May 2019 17:06:25 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20190526020635.20780-1-me@tobias.gr> Date: Wed, 29 May 2019 23:06:24 +0200 In-Reply-To: <20190526020635.20780-1-me@tobias.gr> (Tobias Geerinckx-Rice's message of "Sun, 26 May 2019 04:06:35 +0200") Message-ID: <87a7f5t1gv.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Tobias Geerinckx-Rice skribis: > I didn't even realise this was =E2=80=98missing=E2=80=99. Is there any r= eason not to include it next to /bin/sh? > > Sure, it's not pure, but then why provide /bin/sh when nowadays /usr/bin/= env is both more common, more flexible,> > > Feel free to gently enlighten me. The =E2=80=98special-files=E2=80=99 service, =E2=80=98extra-special-file=E2= =80=99, and related documentation, including a snippet for adding /usr/bin/env (info "(guix) Base Services"), stem from this discussion: https://lists.gnu.org/archive/html/guix-devel/2017-02/msg00205.html So, do people want to add /usr/bin/env by default? :-) Thanks, Ludo=E2=80=99. From unknown Mon Aug 18 02:38:46 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#35910] [PATCH] services: Add =?UTF-8?Q?=E2=80=98/usr/bin/env=E2=80=99?= special file. References: <20190526020635.20780-1-me@tobias.gr> In-Reply-To: <20190526020635.20780-1-me@tobias.gr> Resent-From: Jeff Bauer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 16 Jun 2019 21:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35910 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35910@debbugs.gnu.org Received: via spool by 35910-submit@debbugs.gnu.org id=B35910.156072033821785 (code B ref 35910); Sun, 16 Jun 2019 21:26:02 +0000 Received: (at 35910) by debbugs.gnu.org; 16 Jun 2019 21:25:38 +0000 Received: from localhost ([127.0.0.1]:41587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcceg-0005fI-6D for submit@debbugs.gnu.org; Sun, 16 Jun 2019 17:25:38 -0400 Received: from mail-yw1-f41.google.com ([209.85.161.41]:36975) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hcc5I-0004kp-6h for 35910@debbugs.gnu.org; Sun, 16 Jun 2019 16:49:04 -0400 Received: by mail-yw1-f41.google.com with SMTP id 186so4054680ywo.4 for <35910@debbugs.gnu.org>; Sun, 16 Jun 2019 13:49:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=J0TgMMOiljKA00d7I/blEOLrMymZNYBRjPNkcuz7cyI=; b=LGnQqmQENLL064T6pWgnFBDhCKZONs/fo4pGeXiWB47dB8SnM9YHiqt9kacC2PNFlq yJPaIXW9UM81NMiX+O3RFY9Fhgz9NJjgy0v7cb+60q/bf5sFoWUl4NbYEL/Fn4qUZcb1 wcuKn6CMCGlm+NXvu4zkG9QFAC83RfP5/FFGUPL11PcsT5MJIAxZ16ckwmlCDS9Xj79R Fkx103zqj6pffcV9h00OHqa+YPOo1B1KbW7i1crWWhUZPEMycdZMHDI28XddKdnw0pGv JuqLdnUxFpj+lZaPe/AvnPW3cH7aTZFKEs4vGNKWvXQqS2zCg9k4dZOhDqwMQQZIqFEe bi+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=J0TgMMOiljKA00d7I/blEOLrMymZNYBRjPNkcuz7cyI=; b=ckb/3fJHHkhs18q5TbGvhcvjlftnqGIepSZcz3mvMzMzJJCyHXCCV1hbmytvSLQum1 BK566pEPlBHpt/+m1COKmKOlTlIV+Jp9zrQmpBYmTVRfuR4RVVeoEJabD9Bs0tfilbtk cKhBMtDAGC4C4ZtVYz0O/anB32nNO9n/YccEYzD2GZ3hHhFn+76QfBvVmVjBSxMW6Z3o VoXEuP8rf+eqAitXvqA0ttFFuKQPioRjSfkzwpZhjX1tsE0wbOA/P3WNpqbawdAjRFQq o/Xr+1a/B/A4vilxNeMFtFwFNcfhpR7Gtlh5ee0BVM38oz8rkICvfZtFlnaGW2lX/rsq vS9w== X-Gm-Message-State: APjAAAXFTR2jqcDK0X7lhehdddky+QteJAOw2YOXglGBajk1A6EIYM0i 131UabnpMKYu+cOm3bjS69r/Gh6z X-Google-Smtp-Source: APXvYqxGFeKSV7GTwMLuId+1xHQxkKjKjxFK4903XgzzSs0bQuUQOtFqjGpIm5B2PkAG0u5O7d3CJg== X-Received: by 2002:a81:5517:: with SMTP id j23mr62406408ywb.164.1560718137923; Sun, 16 Jun 2019 13:48:57 -0700 (PDT) Received: from localhost (c-68-32-100-39.hsd1.tn.comcast.net. [68.32.100.39]) by smtp.gmail.com with ESMTPSA id b196sm2637010ywh.51.2019.06.16.13.48.56 for <35910@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 16 Jun 2019 13:48:56 -0700 (PDT) Date: Sun, 16 Jun 2019 15:48:55 -0500 From: Jeff Bauer Message-ID: <20190616204855.GE12459@serpent> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.11.4 (2019-03-13) X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Sun, 16 Jun 2019 17:25:37 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > So, do people want to add /usr/bin/env by default? :-) +1 This would provide some sanity in writing scripts that could be portable between guix and non-guix systems. I've used this in the past to write scripts what would work between Linux and BSD systems. -Jeff From unknown Mon Aug 18 02:38:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Tobias Geerinckx-Rice Subject: bug#35910: closed (Re: Scripting guix in guile (Konrad Hinsen)) Message-ID: References: <87pnkdwwfj.fsf@nckx> <20190526020635.20780-1-me@tobias.gr> X-Gnu-PR-Message: they-closed 35910 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 35910@debbugs.gnu.org Date: Fri, 06 Sep 2019 10:29:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1567765742-1798-1" This is a multi-part message in MIME format... ------------=_1567765742-1798-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #35910: [PATCH] services: Add =E2=80=98/usr/bin/env=E2=80=99 special file. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 35910@debbugs.gnu.org. --=20 35910: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D35910 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1567765742-1798-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 35910-done) by debbugs.gnu.org; 6 Sep 2019 10:28:50 +0000 Received: from localhost ([127.0.0.1]:36473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i6BU2-0000Sd-5m for submit@debbugs.gnu.org; Fri, 06 Sep 2019 06:28:50 -0400 Received: from tobias.gr ([80.241.217.52]:60292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i6BTz-0000ST-1T for 35910-done@debbugs.gnu.org; Fri, 06 Sep 2019 06:28:47 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 28900e7e; Fri, 6 Sep 2019 10:28:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to:cc :subject:references:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=dHmfqiTAI8o02qStvjfeyV 3VpYT6ehOa1vs/gcPoMok=; b=Vf7S8nktlCxxLA77er/V1qLERKtW2EyKFfoksR u9co+Z1NMVnD+vkfFfqMnRqXMnqHuAKDQDnS0irVmOJRJuNFPLzgAwq+x4uJ+JHV OKtB4qS9mGBzq1GVCnO6U7sm+VIddMmSp752Sy0dcjLpPufutpPLin336pto39ly xR5lZhUMV/BH6gp5/Sxun6r7+1hGPXQTokPgZXS5hDMto8VkWqGUZudv3d3LpDdw iS5k9phBa0BVH/krZwPfBXGAedRsTkHP+xE003Cy9BGpCshj1soePBdGc/Dquz49 yd0zTGqvigIDoBQzFY32Ajet7nLIaqQ3/vIozbspLg8xH3Jg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id a02beb6a (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 6 Sep 2019 10:28:38 +0000 (UTC) From: Tobias Geerinckx-Rice To: help-guix@gnu.org, 35910-done@debbugs.gnu.org Subject: Re: Scripting guix in guile (Konrad Hinsen) References: <87sgpa1cu1.fsf@gmail.com> In-reply-to: Date: Fri, 06 Sep 2019 12:28:32 +0200 Message-ID: <87pnkdwwfj.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 35910-done Cc: Gary Johnson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Konrad, Konrad Hinsen =E5=86=99=E9=81=93=EF=BC=9A > Is there any reason why this isn't defined by default? That=20 > would solve > portability problems for lots of scripts, and I don't see any > disadvantage caused by this link. It is now! Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXXI00AAKCRANsP+IT1Vt ebAcAP9G0komXnmbyJvBICc8rquV3wQ0rY/G7hYk2ofUuE6AIAD+KvIsx9CQmOEA WyRMmxXDefDr56uDELsS0DwJOGMCdAo= =G+k0 -----END PGP SIGNATURE----- --=-=-=-- ------------=_1567765742-1798-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 May 2019 02:07:02 +0000 Received: from localhost ([127.0.0.1]:50052 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUiYw-0000e4-GW for submit@debbugs.gnu.org; Sat, 25 May 2019 22:07:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hUiYv-0000dc-Bo for submit@debbugs.gnu.org; Sat, 25 May 2019 22:07:01 -0400 Received: from lists.gnu.org ([209.51.188.17]:43690) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hUiYq-0000yh-A1 for submit@debbugs.gnu.org; Sat, 25 May 2019 22:06:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUiYp-00020F-5g for guix-patches@gnu.org; Sat, 25 May 2019 22:06:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hUiYo-0000xS-5Y for guix-patches@gnu.org; Sat, 25 May 2019 22:06:55 -0400 Received: from tobias.gr ([2001:470:7405::1]:39384) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hUiYn-0000vd-Gd for guix-patches@gnu.org; Sat, 25 May 2019 22:06:54 -0400 Received: by tobias.gr (OpenSMTPD) with ESMTP id 5e183ecb for ; Sun, 26 May 2019 02:06:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=2018; i=me@tobias.gr; bh=aSCGyqRvr HNNiNRLILQfqL2GXgHNdUvEHp19qmVvy2w=; b=m/rZm2aAgdHeFoNyETGgeRcTg ktTAz+EJqb5mNym0pkmfYjmrOhhHS0Lmd0NE50UdZHt7uhMIdxszuPlizdgsXkdg 1CDyyR36YibS2ezf77JYQc6r7dzEoUzGG+ClSCf7EBJCi02KBltP51s4PIpB76j7 Hq9/+YfHGidzmAKCwbzE2dNeTOtlMthvQJ7cYTN00cCJju9PpNkrUOqDIu3Wt8v4 WratRpEU/LL4l4B/oGeKQsMMgaybsEWTogIHDoe5HXTmyFCWut9f8I0qtkLoBOSo kLARG4Wc8Yw+ZG+/fdPqVGjl55nG/r7MfTvde1koRjak0SbdopvrWKMq3NJIA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id e799f07c (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Sun, 26 May 2019 02:06:43 +0000 (UTC) From: Tobias Geerinckx-Rice To: guix-patches@gnu.org Subject: [PATCH] =?UTF-8?q?services:=20Add=20=E2=80=98/usr/bin/env?= =?UTF-8?q?=E2=80=99=20special=20file.?= Date: Sun, 26 May 2019 04:06:35 +0200 Message-Id: <20190526020635.20780-1-me@tobias.gr> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:470:7405::1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) * gnu/services/base.scm (%base-services): Add ‘/usr/bin/env‘ to special-files-service-type. --- Guix, I didn't even realise this was ‘missing’. Is there any reason not to include it next to /bin/sh? Sure, it's not pure, but then why provide /bin/sh when nowadays /usr/bin/env is both more common, more flexible,> Feel free to gently enlighten me. Kind regards, T G-R gnu/services/base.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/services/base.scm b/gnu/services/base.scm index f709ca5519..444e48f137 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -8,6 +8,7 @@ ;;; Copyright © 2016 Ricardo Wurmus ;;; Copyright © 2018 Mathieu Othacehe ;;; Copyright © 2019 Efraim Flashner +;;; Copyright © 2019 Tobias Geerinckx-Rice ;;; ;;; This file is part of GNU Guix. ;;; @@ -2382,6 +2383,8 @@ to handle." (service special-files-service-type `(("/bin/sh" ,(file-append (canonical-package bash) - "/bin/sh")))))) + "/bin/sh")) + ("/usr/bin/env" ,(file-append (canonical-package coreutils) + "/usr/bin/env")))))) ;;; base.scm ends here -- 2.21.0 ------------=_1567765742-1798-1--