From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iAY5JCfflGH3HwEAgWs5BA (envelope-from ) for ; Wed, 17 Nov 2021 11:53:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id EHLvHyfflGHKCgAAbx9fmQ (envelope-from ) for ; Wed, 17 Nov 2021 10:53:27 +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 577478F34 for ; Wed, 17 Nov 2021 11:53:27 +0100 (CET) Received: from localhost ([::1]:45232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnIZC-0005wa-Hw for larch@yhetil.org; Wed, 17 Nov 2021 05:53:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnIWs-0003dm-JN for guix-devel@gnu.org; Wed, 17 Nov 2021 05:51:02 -0500 Received: from [2001:470:142:3::e] (port=55244 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnIWs-0004Z6-48; Wed, 17 Nov 2021 05:51:02 -0500 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=ET+YivmIATtyWF+BX9hn8cuP6a3V2vWKtHRnNffgtEQ=; b=Wy53JeOZn176nWtwE09+ FPJnRn4bwFFpRqQ5W6sqJTyg0V66IgAvEXF/8UQCEHLLpkoFrmYrmySaH+hXZwvdpFNoAxlZ1V8dF vHb9sir+uKY8+1CJhYV2Wq+DPQrZ/YtYf1JUI9amZdKAsH28cYEkSNqEGchzUDWBdZMxBbOacKfRU mkwTA0dNbJCw853IBMNIW2VFuUKU+aYZfO9pYguOcUGgYVrSNITYcC+fbJpVfNlXLGMiS/vteJ/VJ wHByWhmg82Jc+2L6ODQk6ZrWuChJZu30QTndgDQZ6Rpae5ZccrvK7ykP2VpGSa90PahEVYCr33uxn s13WOe4fYR6EmQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:53273 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnIWr-0004YR-SY; Wed, 17 Nov 2021 05:51:02 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Jacob Hrbek Subject: Re: Unable to define shebang for guix shell file References: <87czn9i6sk.fsf@gnu.org> <878rxxm0ow.fsf@zancanaro.id.au> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 27 Brumaire an 230 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 17 Nov 2021 11:51:00 +0100 In-Reply-To: (Jacob Hrbek's message of "Tue, 09 Nov 2021 22:34:47 +0000") Message-ID: <8735nvys17.fsf@gnu.org> 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: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" 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=1637146407; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ET+YivmIATtyWF+BX9hn8cuP6a3V2vWKtHRnNffgtEQ=; b=FH35IxVyrWEf80tlddGpxnOzXNjUYrYK7HHGN/DtVmXgs1ni7QUFnpG8qvY5MdaI8UoJ5B 2S1sB6Fe1GnRLCDx7KPW9RfHj0RjwqrUSvxe/WgG8gERmxLUdzEJctMwvAHGN2HhzcffE7 9IN8dQYri2vcMs/nRSmthedwdLRB8YUZ2j2wjPtK62mGi014sblHOq9tmx5Draha0Do6A2 YFgoRUJ7Ek6Xkr2GZ9fJzgINNtUozIxqTK5y/o5clohdvZQKh/n5kSYbH/DtFjFKZ0VLZV Hcfhql/u3KAxDvLZ9SPKRXh6ZDfrMdudmxhT99+7ARQqkA7zvnUrqI6RcNxcBw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637146407; a=rsa-sha256; cv=none; b=uJ6RcsNPmQUuhc7y7mF1U9+xCY2LbR+mXy0oF6p9iKhiyVYT3bDvo4BqUxOzoH73VGKUHi v5I4Fvpw1fqOBFu2jGr0eHuUmnkxYWkQTwBsQReVPOtNOj+ZE4N2YUckyC7QEj9d0bT/MZ PgAQodiPWj4xtV2+GhJO+k4KoxBthdv+K6IFPn6PCfs3BHWrhPS94qUtLu/w/m4e/r+Uu3 xUglmmfghRtqV66Dr21/MQXPtIwQ4G9XqH0t+pzoZI6S8hC4p2osoadwbxeF2kIqOTwsz9 JSukEGkYc5yDtOcPa1ujspog2OcMvUmXpzFKoRFxawVHCwqZZ+4PRkYmL2wRqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=Wy53JeOZ; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.75 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=Wy53JeOZ; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 577478F34 X-Spam-Score: -4.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0Lc/fkajZU3A Hi, Jacob Hrbek skribis: > Doesn't seem to work on `busybox sh` for me (I am not aware of better way= to replicate POSIX environment on GNU Guix): Note that you=E2=80=99re running /usr/bin/env, which has nothing to do with Busybox. > kreyren@leonid ~$ guix shell busybox -- busybox sh > ... > ~ $ cat test.sh=20 > > #!/usr/bin/env -S guix shell -- > (use-modules > (guix channels)) > > (list (channel > (name 'guix) > (url "https://git.savannah.gnu.org/git/guix.git") > (commit > "f1bfd9f1948a5ff336d737c0614b9a30c2bb3097") > (introduction > (make-channel-introduction > "9edb3f66fd807b096b48283debdcddccfea34bad" > (openpgp-fingerprint > "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA"))))) > > (specifications->manifest > (list "emacs@27.2" > "emacs-treemacs" > "emacs-evil")) > ~ $ ./test.sh=20 > > guix shell: warning: no packages specified; creating an empty environment > guix shell: warning: no packages specified; creating an empty environment It=E2=80=99s working as expected: =E2=80=98guix shell=E2=80=99 has zero arg= uments so it creates an empty environment. Additionally, the shebang does not specify an interpreter. The example I gave at goes like this: --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--- HTH! Ludo=E2=80=99.