From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aG93H94zWmEvKgAAgWs5BA (envelope-from ) for ; Mon, 04 Oct 2021 00:51:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eBgnG94zWmGJMQAA1q6Kng (envelope-from ) for ; Sun, 03 Oct 2021 22:51:10 +0000 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 AF64993D4 for ; Mon, 4 Oct 2021 00:51:09 +0200 (CEST) Received: from localhost ([::1]:47192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXAK4-0007x1-FY for larch@yhetil.org; Sun, 03 Oct 2021 18:51:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33758) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXAK0-0007wf-96 for guix-patches@gnu.org; Sun, 03 Oct 2021 18:51:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51783) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXAJy-0002ra-NW for guix-patches@gnu.org; Sun, 03 Oct 2021 18:51:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXAJy-0007dB-I4 for guix-patches@gnu.org; Sun, 03 Oct 2021 18:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50960] =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?shell=E2=80=99?= shebangs Resent-From: Katherine Cox-Buday Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 03 Oct 2021 22:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50960 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 50960@debbugs.gnu.org Received: via spool by 50960-submit@debbugs.gnu.org id=B50960.163330143429295 (code B ref 50960); Sun, 03 Oct 2021 22:51:02 +0000 Received: (at 50960) by debbugs.gnu.org; 3 Oct 2021 22:50:34 +0000 Received: from localhost ([127.0.0.1]:35096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXAJV-0007cR-DZ for submit@debbugs.gnu.org; Sun, 03 Oct 2021 18:50:33 -0400 Received: from mail-io1-f44.google.com ([209.85.166.44]:38871) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXAJP-0007c8-Qn for 50960@debbugs.gnu.org; Sun, 03 Oct 2021 18:50:31 -0400 Received: by mail-io1-f44.google.com with SMTP id z184so4977482iof.5 for <50960@debbugs.gnu.org>; Sun, 03 Oct 2021 15:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=Y4f0+gFCdd5v5D3peC7FZ2nm/VOgrUmiUyrI3Z7Wxsg=; b=hPB/bd1DYA0Tu5ZAl0bVGUaCIvJ4HYgQHXNT4/IeGhscE/fprchVQ9zUUAzxb2nM1Q QiJmqCMW4ow3EzjnMhquXukTXpMUeerj1aq0tDVKax5PX8ruJFmO+pRKpB66BES0CvEG LIPf/qG8lQXFiycPS43e40vBGXyPVoVAHRJcuJXAAMzqz8UhAhNTuBgrQI9ezDw7pKTV xpVfiQoaTPbyBi36sJdSXMzgIOsEiA0rITKNNbaAHlJoxyzV3Fd1BIAfIGRvafEAEgbg eSNftrDOtR6nlT7BSH+VgXpAo7w6vHN9zsW+QUIxKmkiWP/w86AD6+xn5ZkQs65QcZXw YIxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=Y4f0+gFCdd5v5D3peC7FZ2nm/VOgrUmiUyrI3Z7Wxsg=; b=fHY70cndB07hfxi+F6+8XGZ5CruUwqulmgHA6F1d2WackpA1xCIeHbRbQ1J5ZIXfFv ex53boOuru4aysa6BBwa2nzWeMdtjrv37PY5PzJ2DopuPu0uyHk9oqFhsEfyMULvtn7F 0WMd7dARND9+m0TULZ4Ev23iQJmVM/MJi330pjmYKSgd29ZdsWXAMG2LZLpzjGUfRvvy 9vz0TfCkQwWtMlBgndh++3FUiILHccDsqTKvG+ZLYDo0VVK7T0pR6OQRfrh9rXai+eAO oNOzC/WOHqrUqlq7k4yz7MW9qYxVQfBL2bDjtfK3XPFYXMcZKsXll5ogEY3ANNLqPfN0 v6aw== X-Gm-Message-State: AOAM533zjC57ISZT9l6LQnR7tLIXGSnGlCRC3/eaYJusmqhFCTO73FD2 6ucCMi/t9hGwTg1DfvlyV47Uld6P8xmSGA== X-Google-Smtp-Source: ABdhPJyFdpYlOHBjPt6c+bcNqXZ9l1AB0YPPGlNcEu4msT96JKiFkHB4cA/PJJdf71Z0RXY9vz4ECQ== X-Received: by 2002:a6b:fe18:: with SMTP id x24mr7172077ioh.119.1633301422190; Sun, 03 Oct 2021 15:50:22 -0700 (PDT) Received: from washu-v4 (172-221-246-205.res.spectrum.com. [172.221.246.205]) by smtp.gmail.com with ESMTPSA id x8sm5246945ilq.62.2021.10.03.15.50.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 15:50:21 -0700 (PDT) From: Katherine Cox-Buday References: <20211002102116.27726-1-ludo@gnu.org> <87zgrry1at.fsf@gnu.org> Date: Sun, 03 Oct 2021 17:50:19 -0500 In-Reply-To: <87zgrry1at.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sat, 02 Oct 2021 16:00:10 +0200") Message-ID: <87k0itbu50.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633301469; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Y4f0+gFCdd5v5D3peC7FZ2nm/VOgrUmiUyrI3Z7Wxsg=; b=BbxFM1L6L5tcrJuNq87L1kBvvSABI5nrMlScce9n+asp/R8ZzmeW4+sZMvCDm/lUucPTVB KJv1Q2LpVmgp8S6ykU4sqJZMMOLVcbFcLyB7gnOaqIztiG69s5+LpKd9xvxBDpGtBwtMR1 HySN1j7e2KJ2AsN6LN+kVJt9kCrEJEX/e1i/bcV6tGWXvO4VQaZo0XuanQj7+N2+L5uMzf tBng1v8eS5RCSYgP+w4hqKNpB762oXSO1w4PJckwYk6rIYO4csX8oqW95Sm4Ii7uNfsvUO iYLw16gns/e9hbNt28ddWcBZSSdZ7XXWtAcL9L1wRKevZIbubUqAKiaCdDTj3w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633301469; a=rsa-sha256; cv=none; b=UReqBLExNN2LuVIddACeFYM5aVRgaHtz3PQWQsBI9bHYW6OLeI0LqVLN5iHBRDn2UtsKdP 2OhBve0eUw7mOPgYY20U+jt62vX/hTm+Wi+2eI3cfsrtFi9vwWLgtdOQIKfwfa975VcSEY 6nFNJS0PQcMc4jKvCjjrMYarb6WUEZys03vhz6ExNs36/Yd+EpcQ/y4z2JnWCZT7P/uMKF RtqmF6SHEbKjWdrEHGrf87RjfdWLn86NuNru0Dy8DQkks8ixpu+nGyPKNK9S8UBT+A02Uj 1lV5daIPhJhI0dOlJ5R1TP/SCpq/KWicRuACAfUktjLUyIbUeXR5NJ48N87oFw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="hPB/bd1D"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="hPB/bd1D"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: AF64993D4 X-Spam-Score: -1.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: W3uszj3A37X6 Ludovic Court=C3=A8s writes: > Oh, I had another goal in mind, which was to make it easy to use =E2=80= =98guix > shell=E2=80=99 in shebangs. > > Problem is, since it=E2=80=99s called =E2=80=98guix shell=E2=80=99 and no= t =E2=80=98guix-shell=E2=80=99, we have > to use =E2=80=98/usr/bin/env -S=E2=80=99 anyway as the shebang so it spli= ts arguments. > And with =E2=80=98-S=E2=80=99, we can already do pretty much everything w= e want. Here=E2=80=99s > a shell script: > > --8<---------------cut here---------------start------------->8--- > $ cat t.sh > #!/usr/bin/env -S guix shell hello bash -- sh > type -P hello > hello > --8<---------------cut here---------------end--------------->8--- I was already very excited about this patch series, and now I see this! I wanted to point out that I don't think Guix's shebang substitution phases= know how to deal with ~env -S~, and I wish they would (I recently ran into= this). I can't really think of any use-cases for a Guix package which when= built contains a ~guix shell~ script, but I wanted to raise the possibilit= y in case someone else can. --=20 Katherine