On Wed, 05 Oct 2022, Maxim Cournoyer <maxim.courno...@gmail.com> wrote: > Hi, > > Olivier Dion <olivier.d...@polymtl.ca> writes: > > [...] > >>> I prefer the "#!/usr/bin/env bash" shebang; /usr/bin/env is available on >>> FHS distribution, and on Guix System, for convenience. You can use if >>> for any interpreted script, such as Guile, Python, Perl, etc. >> >> Only if coreutils is in the profile that would work yes. > > coreutils doesn't need to be in the profile since /usr/bin/env is linked > to (file-append coreutils "bin/env"); see in the value of %base-services > in (gnu services base), which contains: > > --8<---------------cut here---------------start------------->8--- > (service special-files-service-type > `(("/bin/sh" ,(file-append bash "/bin/sh")) > ("/usr/bin/env" ,(file-append coreutils "/bin/env")))) > --8<---------------cut here---------------end--------------->8---
Oh interesting I did not know that. Thank you! -- Olivier Dion oldiob.dev