From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:56230) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJkTv-0005Mt-AK for guix-patches@gnu.org; Wed, 01 Apr 2020 17:01:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJkTu-00032a-DJ for guix-patches@gnu.org; Wed, 01 Apr 2020 17:01:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55422) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jJkTu-00032L-9s for guix-patches@gnu.org; Wed, 01 Apr 2020 17:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jJkTu-0002Hh-7U for guix-patches@gnu.org; Wed, 01 Apr 2020 17:01:02 -0400 Subject: [bug#40373] [PATCH] guix: new command "guix run-script" Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Wed, 01 Apr 2020 23:00:29 +0200 In-Reply-To: (Konrad Hinsen's message of "Wed, 01 Apr 2020 16:09:11 +0200") Message-ID: <875zeiudjm.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Konrad Hinsen Cc: 40373@debbugs.gnu.org Hi Konrad, Konrad Hinsen skribis: > +The @command{guix run-script} command executes a Guile script > +(@pxref{Running Guile Scripts,,, guile, GNU Guile Reference Manual}). > +Compared to just launching the @command{guile} command, > +@command{guix run-script} guarantees that all the Guix modules > +and all its dependencies are available in the search path. What about making that just a new =E2=80=98-s=E2=80=99 flag for =E2=80=98gu= ix repl=E2=80=99 (just like Guile=E2=80=99s =E2=80=98-s=E2=80=99 flag)? =E2=80=98-q=E2=80=99 should al= ways be implied when doing that. Now, this wouldn=E2=80=99t be usable as a shebang due to the fact that only= one argument is allowed, unless we do some extra argument tokenizing. Thanks, Ludo=E2=80=99.