From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KPFZI92Q3WOBEQEAbAwnHQ (envelope-from ) for ; Fri, 03 Feb 2023 23:55:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SHEoI92Q3WMytgAAauVa8A (envelope-from ) for ; Fri, 03 Feb 2023 23:55:25 +0100 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 6930E25F27 for ; Fri, 3 Feb 2023 23:55:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pO4xT-0000bd-Mp; Fri, 03 Feb 2023 17:55:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pO4xS-0000bL-Ki for guix-patches@gnu.org; Fri, 03 Feb 2023 17:55:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pO4xS-0004vp-Bf for guix-patches@gnu.org; Fri, 03 Feb 2023 17:55:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pO4xR-0006BY-Uv for guix-patches@gnu.org; Fri, 03 Feb 2023 17:55:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61094] [PATCH] doc: Document 'shebang' for 'guix shell'. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 03 Feb 2023 22:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61094 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Simon Tournier , 61094@debbugs.gnu.org Received: via spool by 61094-submit@debbugs.gnu.org id=B61094.167546488923754 (code B ref 61094); Fri, 03 Feb 2023 22:55:01 +0000 Received: (at 61094) by debbugs.gnu.org; 3 Feb 2023 22:54:49 +0000 Received: from localhost ([127.0.0.1]:40152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pO4xE-0006B4-MB for submit@debbugs.gnu.org; Fri, 03 Feb 2023 17:54:48 -0500 Received: from mail-ej1-f67.google.com ([209.85.218.67]:35627) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pO4xC-0006Aq-KG for 61094@debbugs.gnu.org; Fri, 03 Feb 2023 17:54:47 -0500 Received: by mail-ej1-f67.google.com with SMTP id qw12so19446643ejc.2 for <61094@debbugs.gnu.org>; Fri, 03 Feb 2023 14:54:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=XssRLuOmcGP6vpszTfWg8PAMTRbmxkaS7YuP0airGMA=; b=FsJ9gcAXCv2dDjTA1xOzlxk5QLT+u/gt4gPHfS3UYXthGFAPQ4PeNZOsCXh2GuO3Zl /DeYlCNdBqyu66Og8QsXJc4Yl0T+Z6MYFBJLPhggn2GyzJQ/PWQNsAeRFJOoM5j2CtSJ blolK9uoQlX8yOk59EUCi85N+ycqY5SDuUQEe9OFbA50zgKn+fhQQl1H5YXtXAMPHzVe GDbNoE1KuyNVUOOaVVHexQb4XGenSvY6/qd2Bp3qi73fuLIBmPY7u8B+u1FEDfhgVcyM oXnTtL6RPPyWWAKeI1H6A2/EOw2RJ4ohYfEVJlo0q3Kz6b5rtgNN7epGQ4Yw/Jm5rO/R mzZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=XssRLuOmcGP6vpszTfWg8PAMTRbmxkaS7YuP0airGMA=; b=uUu0KT5NbYbVOb9X0DcrPdPSclQi/1eV7XAftyEp5k1zz6LJ1Bd7y5eImqcp5TWsc2 tZF84cywuFwD7YOrJ9tUFzCc/NMgAWI2iYdAnlKvgy3cIb0B9NiLijciqSnHro6t3lwv ybSGLRPi4twurTOA7wmiz0eMH+euSjGwYpdrr3zg0c7WJSDDZLv2+oCcnSV6YOmHREuu VCr0DMdscSXz6NnievEy/gYig1KM78BX3LC5TrICoNGEarT2ba/eMHYjtkOFxHRPPMra AgEtDadOX5lrRAIVBO4EiQGQGCKdaogtg6L3P2NBUh2p5i2xwqzwwfVtNrIEeLw26k9z e/pw== X-Gm-Message-State: AO0yUKX8eI3RgQSkL2j8aS9A4CI5aH+X/+2P7dAwJTMkMkeOxeHrw5Ha EePh8fep7oucIzzbb3clBMY= X-Google-Smtp-Source: AK7set9isD2GWne7e0PpLiC6bOnF6c8GS5HH6k3VEYLTkt4ETzch1RdHFlW3Cmhp16mRvGCDDko7Wg== X-Received: by 2002:a17:906:16c2:b0:888:33a:e359 with SMTP id t2-20020a17090616c200b00888033ae359mr11353917ejd.38.1675464880736; Fri, 03 Feb 2023 14:54:40 -0800 (PST) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id s7-20020a1709064d8700b0087221268e49sm1972900eju.186.2023.02.03.14.54.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Feb 2023 14:54:40 -0800 (PST) Message-ID: <8e79fe217c633650394f2c5199e94e5d0c5a7911.camel@gmail.com> From: Liliana Marie Prikler Date: Fri, 03 Feb 2023 23:54:38 +0100 In-Reply-To: <20230127111237.2910126-1-zimon.toutoune@gmail.com> References: <20230127111237.2910126-1-zimon.toutoune@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675464925; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=XssRLuOmcGP6vpszTfWg8PAMTRbmxkaS7YuP0airGMA=; b=QPKQmFq0zFYgofJ7lqc1sOBvhyPxfj4z5FFUHctmSH80jKc9Mirf6Ya2PrSZxcJc5BQzHV HB9j/pBnvtz6xTcG0aVlkTmINvmEKmQdzB1WV/lSS77H5dlhmi56KvmFbVZWbRT9/+owtJ ncHMA9KRW+Vte5e0gC5tj7cnujBc79PejR/Ybq/6pikyMrkWBKnhgcm0L2UZIxhTwmrlve 8ibAz4EKnZQzLsodNpnZRcUOjHvOmkdT1MkfLIH3OrJEcb49C4ilYVNjEcI5ecEvRb5PWP SR3JrxXLjikuCy5+1fI0m9dqLOxcq4rdvy3Gwc4hrLlvhm1ZKgOJb/Y5LksMig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=FsJ9gcAX; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675464925; a=rsa-sha256; cv=none; b=ufQJWOti8qyuNwn+KquIjHjI7kz6Z+WRtjo41/6tp90NI3Z7I7QXAfQF9XZG6MJiuZcYo1 vSnDgbCdQT45XAi/1xCBee+6UIZy9Jd2dMjMIeC6l5w+Gwa1GwVecS26ccvqCSIJfrx0v0 vcRedBBoewBgFaKY4zsrX59gKLaPi4VeYddS+kOkwFre5xPQiWP0jE2MktMSp9qOJ7H0C9 DejqN+/UMYmhk00GODpmBJFP58iHza9F6MF9m/OAcdRZVY3UD+K9JntHlfOxNz5dCuywDJ ui/0dpBmuJtLxKnrXvjmq3svjn8NL2IqZt3s6gWbVtpGuSGDrhKZyGI8w+7tew== X-Migadu-Queue-Id: 6930E25F27 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=FsJ9gcAX; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.12 X-Spam-Score: 5.12 X-TUID: nQLvyC0kxF2Q Am Freitag, dem 27.01.2023 um 12:12 +0100 schrieb Simon Tournier: > * doc/guix.texi (Invoking guix shell): Add a note mentioning how to > use > 'shebang'. > --- > =C2=A0doc/guix.texi | 15 ++++++++++++++- > =C2=A01 file changed, 14 insertions(+), 1 deletion(-) >=20 > diff --git a/doc/guix.texi b/doc/guix.texi > index 2b1ad77ba5..acda01c8e6 100644 > --- a/doc/guix.texi > +++ b/doc/guix.texi > @@ -71,7 +71,7 @@ Copyright @copyright{} 2019 Kyle Andrews@* > =C2=A0Copyright @copyright{} 2019 Alex Griffin@* > =C2=A0Copyright @copyright{} 2019, 2020, 2021, 2022 Guillaume Le > Vaillant@* > =C2=A0Copyright @copyright{} 2020 Liliana Marie Prikler@* > -Copyright @copyright{} 2019, 2020, 2021, 2022 Simon Tournier@* > +Copyright @copyright{} 2019, 2020, 2021, 2022, 2023 Simon Tournier@* > =C2=A0Copyright @copyright{} 2020 Wiktor =C5=BBelazny@* > =C2=A0Copyright @copyright{} 2020 Damien Cassou@* > =C2=A0Copyright @copyright{} 2020 Jakub K=C4=85dzio=C5=82ka@* > @@ -5923,6 +5923,19 @@ building or downloading any missing package, > and runs the > =C2=A0guix shell python python-numpy -- python3 > =C2=A0@end example > =C2=A0 > +@quotation Note > +@cindex shebang > +@command{guix shell} can be used as @emph{shebang}.=C2=A0 Consider the > +previous example as an executable Python script, the @emph{shebang} > +reads, > + > +@example > +#!/usr/bin/env -S guix shell python python-nympy -- python3 > +@end example > + > +All the @var{options} or convenience of @command{guix shell} apply. > +@end quotation > + Is this really guix running as a shell or is it actually a feature of env? In either case, it's worth documenting, but we should try to stay factually correct. Cheers