GNU bug report logs -
#35910
[PATCH] services: Add ‘/usr/bin/env’ special file.
Previous Next
Reported by: Tobias Geerinckx-Rice <me <at> tobias.gr>
Date: Sun, 26 May 2019 02:08:02 UTC
Severity: normal
Tags: patch
Done: Tobias Geerinckx-Rice <me <at> tobias.gr>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Fri, 06 Sep 2019 12:28:32 +0200
with message-id <87pnkdwwfj.fsf <at> nckx>
and subject line Re: Scripting guix in guile (Konrad Hinsen)
has caused the debbugs.gnu.org bug report #35910,
regarding [PATCH] services: Add ‘/usr/bin/env’ special file.
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
35910: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=35910
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
* 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 <rekado <at> elephly.net>
;;; Copyright © 2018 Mathieu Othacehe <m.othacehe <at> gmail.com>
;;; Copyright © 2019 Efraim Flashner <efraim <at> flashner.co.il>
+;;; Copyright © 2019 Tobias Geerinckx-Rice <me <at> tobias.gr>
;;;
;;; 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
[Message part 3 (message/rfc822, inline)]
[Message part 4 (text/plain, inline)]
Konrad,
Konrad Hinsen 写道:
> Is there any reason why this isn't defined by default? That
> 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
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 5 years and 319 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.