From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oASXNxn5EmTLhQAASxT56A (envelope-from ) for ; Thu, 16 Mar 2023 12:10:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SB6pNhn5EmR/HwEAG6o9tA (envelope-from ) for ; Thu, 16 Mar 2023 12:10:17 +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 962FC22AE7 for ; Thu, 16 Mar 2023 12:10:17 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=PI6fHLpc; dmarc=pass (policy=none) header.from=gnu.org; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678965017; 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=i1SEbHgSMM6P+ZegkjM/TEKJniblv/ktYRAKrSb9rLc=; b=DYxylr/a85RJJTknv9ZDzA0cJrb9SjZko3iCtlzumqWQJ9Ed413mrbclAIrxAXHkjV+ONl nEv9c0RsWGRuQT2yK8vJx4P/gmiBZVaW3NBUpDbFT4ARrH/99sL2b+2ThkFO8/98zPIWVi z3k5zqYZ5ng/7n9XE3c5q0O4Fui5/4eRiBoz81YOYl7EGsr1aKwoBDREqfhSh7hUVHaeKB dNk8GEiVoOrRpzwWI6VRVGCGevX5F5zJHgIj1PvNT6FZ+mX/MtgsoBoZJDjz020w8j7Qx0 a8sLJFqnKmyamZJi5EE7SRv6V1MbljrgPgK7iARz0ELyT789Oe2v2cyEpNVhlw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=PI6fHLpc; dmarc=pass (policy=none) header.from=gnu.org; 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=1678965017; a=rsa-sha256; cv=none; b=Kw7WXErApObcfW8NgRmiqgJrB+naTMdpd33buFqgRloRruFRDOTYknSx2LsShfyu8QUo21 6NDzX6kxAZFuBelk/KCxrqAUhQBwdb11FnJ0qrPjHq84WyNNZrEh5CNn8/TQ8A9ErzEsiZ BUSX/VAS6+c9r4sdTRuUPTLBsQ8TWHsSOggaBak4rC7k93+CxKYLK2u/gq12DkSrCmtLJG 4epSiBKFutgEsjE/MibxQ4Vz6W9KGOMHDkk02MljZT7PlEWI9+O9Pk4t5S/Ra5p0JpxsRp yD+dP8JFASZKtrj6gcenB+qU3ykBPsNT4ady9XEAcA79iN5UkEjmRPQ35+R2og== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pclUi-0004l4-Ok; Thu, 16 Mar 2023 07:10:04 -0400 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 1pclUh-0004kt-Az for guix-patches@gnu.org; Thu, 16 Mar 2023 07:10:03 -0400 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 1pclUg-0004XL-Sh for guix-patches@gnu.org; Thu, 16 Mar 2023 07:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pclUg-0007wp-Av for guix-patches@gnu.org; Thu, 16 Mar 2023 07:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#61094] [PATCH] doc: Document 'shebang' for 'guix shell'. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 16 Mar 2023 11:10:02 +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: Morgan Smith Cc: 61094@debbugs.gnu.org, Liliana Marie Prikler , zimoun Received: via spool by 61094-submit@debbugs.gnu.org id=B61094.167896496330496 (code B ref 61094); Thu, 16 Mar 2023 11:10:02 +0000 Received: (at 61094) by debbugs.gnu.org; 16 Mar 2023 11:09:23 +0000 Received: from localhost ([127.0.0.1]:41356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pclU3-0007vn-0L for submit@debbugs.gnu.org; Thu, 16 Mar 2023 07:09:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pclU1-0007vZ-JZ for 61094@debbugs.gnu.org; Thu, 16 Mar 2023 07:09:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pclTu-00027L-OT; Thu, 16 Mar 2023 07:09:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=i1SEbHgSMM6P+ZegkjM/TEKJniblv/ktYRAKrSb9rLc=; b=PI6fHLpcd4/Cy77ujD8B HyH8PcQ+C4KxjF7AQKX+BX8mZpC+wM7/AODUrsZrS1SvJn99SvG0osaQmgW87WRzc14dLjDWOJZms f5vIA8N8mvHYmhk6Lid1t8Uu7Lpzrlxes0KIHM3shkqwnKoUC4PjU4Bg+8LIFrZtmp7WW1/uqBUzd lAVUQWXTbWWeN7ZpvqlA+sh/NHPNbVWaKxvZnbkqHsUzSQtF0btRtQNEZUQOae/CNQOJ1j6X2cdfO TRUVuYaA+RMo1VEA3biKh3AMPFPD9fO45BS8tRPwS8JmGBLKblID/JVyaFj6ty5dGRak/YB6Ex6wy M8GJ1ahpgZkcew==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pclTt-0007S5-V6; Thu, 16 Mar 2023 07:09:14 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20230127111237.2910126-1-zimon.toutoune@gmail.com> <8e79fe217c633650394f2c5199e94e5d0c5a7911.camel@gmail.com> <86v8kdn1ax.fsf@gmail.com> Date: Thu, 16 Mar 2023 12:09:11 +0100 In-Reply-To: (Morgan Smith's message of "Thu, 09 Feb 2023 11:07:19 -0500") Message-ID: <87zg8deyw8.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: X-Migadu-Queue-Id: 962FC22AE7 X-Spam-Score: -3.54 X-Migadu-Spam-Score: -3.54 X-Migadu-Scanner: scn0.migadu.com 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 X-TUID: LNMIIkGPoPSb Hi, Morgan Smith skribis: >>>> +@example >>>> +#!/usr/bin/env -S guix shell python python-nympy -- python3 >>>> +@end example > > Apparently, according to POSIX you're only allowed one argument on the > '#!' line after the path of the executable. I haven't confirmed this > myself but it is in the guile manual, section 4.3.2 "The Meta Switch". > > One argument does seem quite limiting though so I wonder if anyone > actually imposes that limit. Yes, and =E2=80=98env -S=E2=80=99 is used to work around that limitation by= splitting that one argument. It=E2=80=99s a GNU extension, which is fine in this con= text. Ludo=E2=80=99.