From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: 01/01: services: Add =?utf-8?Q?=E2=80=98=2Fusr=2Fbin=2Fenv?= =?utf-8?Q?=E2=80=99?= special file. Date: Sun, 08 Sep 2019 23:48:51 +0200 Message-ID: <875zm231do.fsf@gnu.org> References: <20190906102509.28951.2772@vcs0.savannah.gnu.org> <20190906102510.002BE21324@vcs0.savannah.gnu.org> <87d0gdbtji.fsf@cbaines.net> <87mufhwhc6.fsf@nckx> <874l1p80zr.fsf@netris.org> <87imq4whtt.fsf@nckx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50301) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i753I-000245-Gl for guix-devel@gnu.org; Sun, 08 Sep 2019 17:48:57 -0400 In-Reply-To: (Jesse Gibbons's message of "Sat, 07 Sep 2019 09:03:18 -0600") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Jesse Gibbons Cc: guix-devel@gnu.org Hi, Jesse Gibbons skribis: > If I might chip in here to try to make this discussion a little more > productive, a user suggested /usr/bin/env should be added by default[0] > to solve a problem[1]. In summary, the user wanted to have a standard > for scripting in guile and other common GNU distros. If including > /usr/bin/env by default is not the best solution to the problem, > perhaps we can find a better solution. > > I suggest we add the "guix shebang" command, which takes a script and > returns a script with a shebang pointing to the proper source, like > what 'patch-shebangs build phase does to all the scripts in the build > source. It could replace the input script (perhaps when given the -- > replace option) or it could put the resulting script in the store and > accept the --root=3D option. Would =E2=80=9Cguix shebang=E2=80=9D modify the script, or would it be used= as the shebang? Either way, I=E2=80=99m not sure it=E2=80=99d really solve the initial use = case very well (the initial request was to be able to run scripts unmodified, AIUI.) Thanks, Ludo=E2=80=99.