From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gHMvD+onPmPeaAEAbAwnHQ (envelope-from ) for ; Thu, 06 Oct 2022 02:57:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qN0+DuonPmMIlAAAG6o9tA (envelope-from ) for ; Thu, 06 Oct 2022 02:57:14 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D9C242F52D for ; Thu, 6 Oct 2022 02:57:13 +0200 (CEST) Received: from localhost ([::1]:54366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogFCL-0000MZ-1m for larch@yhetil.org; Wed, 05 Oct 2022 20:57:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogFBf-0000Iq-8o for help-guix@gnu.org; Wed, 05 Oct 2022 20:56:31 -0400 Received: from smtp.polymtl.ca ([132.207.4.11]:55427) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogFBc-0001iB-6a for help-guix@gnu.org; Wed, 05 Oct 2022 20:56:29 -0400 Received: from localhost (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 2960uEN1017757; Wed, 5 Oct 2022 20:56:19 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 2960uEN1017757 To: Maxim Cournoyer Cc: Olivier Dion via , jordi Subject: Re: bash scripts in Guix question In-Reply-To: <87tu4hixwx.fsf@gmail.com> References: <871qrnk61s.fsf@laura> <871qrnj5wu.fsf@gmail.com> <877d1eapma.fsf@laura> <87tu4hixwx.fsf@gmail.com> Date: Wed, 05 Oct 2022 20:56:14 -0400 Message-ID: <87pmf593dd.fsf@laura> MIME-Version: 1.0 Content-Type: text/plain X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Thu, 6 Oct 2022 00:56:14 +0000 Received-SPF: pass client-ip=132.207.4.11; envelope-from=olivier.dion@polymtl.ca; helo=smtp.polymtl.ca X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" Reply-to: Olivier Dion From: Olivier Dion via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665017834; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=NW67fV2XO8l8I8NcSAU44hb4SMRnKqC1tgGQNeRbYY0=; b=oaHbmJy+4n8DHxQeJwFBTMbNIUHpwN63h2rn9/uplbretvIo4J5bfyuZDl8KCcP1gY4mWV ODphRLvEnmeMpvU3/sWXbiYb3tbkRYozVHz+Mj1rUuZZgJ6bOXnkNd+fe7YZeJ8prweR5P kcF+uBCi8+/+HxaWoXVI1Ah/3eblsgGsA/MpdmU7QUdhyirK0tGH438GcLp8a2L7KgQGzm 0Nnb5A/tBBgLE1cE25GH0IvfVFijofAlRikKS06aVF5ChDggHKF8JZa3zAysVmuDIDwBZe nqyTaTgbKjRDxnmAI1/I5X6NoGIYeJuExARJ7eli9V8Ycz/DuM3JTYYjMB0o3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665017834; a=rsa-sha256; cv=none; b=Plpa06/a1B7Sed3gR6XhuMfS1jK+uP2ZHTr9xn+LKtcxBIP0VyN4O3UtfY9wyjG2C5/b80 fZU9ww/GX+a6JyuFWCK4ua2ODgzVQ60EkW2pscJXhyI+kPECg4L1uCeESOobJq2GS652K0 Wbru5FTTmCD7iL5Skz/cWgfeZDNXVAZEQwPwragrBlDXN5NKD0sriNKHAhPcS0rTqNEm+u IWEr82ZOwDyxQVDjLtL/IXNK2tB/+OKePkmk1kNgY4z7ktGJhS5ywza5Vi5MkBNt0nQF9r CqinaUnRLB8hevStUh36Geurc5npIJwCtBEIElpiwlqWSBJNDsRe+2k5DJCFPA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.96 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D9C242F52D X-Spam-Score: -3.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: kGMou8JaA+6i On Wed, 05 Oct 2022, Maxim Cournoyer wrote: > Hi, > > Olivier Dion 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