From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6IpcIbSlqV5mTgAA0tVLHw (envelope-from ) for ; Wed, 29 Apr 2020 16:05:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GIhpN7ylqV5ZAgAA1q6Kng (envelope-from ) for ; Wed, 29 Apr 2020 16:05:16 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::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 0E1FD9400E0 for ; Wed, 29 Apr 2020 16:05:16 +0000 (UTC) Received: from localhost ([::1]:33498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTpD1-0002lR-Pc for larch@yhetil.org; Wed, 29 Apr 2020 12:05:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41738) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTpCs-0002gF-VA for guix-patches@gnu.org; Wed, 29 Apr 2020 12:05:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTpCp-000841-Fp for guix-patches@gnu.org; Wed, 29 Apr 2020 12:05:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:32843) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTpCo-00081Y-57 for guix-patches@gnu.org; Wed, 29 Apr 2020 12:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jTpCn-0003vl-WF for guix-patches@gnu.org; Wed, 29 Apr 2020 12:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40373] [PATCH] guix: new command "guix run-script" Resent-From: Konrad Hinsen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 29 Apr 2020 16:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40373 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 40373@debbugs.gnu.org Received: via spool by 40373-submit@debbugs.gnu.org id=B40373.158817629215092 (code B ref 40373); Wed, 29 Apr 2020 16:05:01 +0000 Received: (at 40373) by debbugs.gnu.org; 29 Apr 2020 16:04:52 +0000 Received: from localhost ([127.0.0.1]:44389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTpCe-0003vL-A9 for submit@debbugs.gnu.org; Wed, 29 Apr 2020 12:04:52 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:35121) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTpCc-0003v2-PP for 40373@debbugs.gnu.org; Wed, 29 Apr 2020 12:04:51 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id E130966E; Wed, 29 Apr 2020 12:04:44 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 29 Apr 2020 12:04:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.net; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm3; bh=7BNraiQ89rUEyt+8LHDGIUz+Br 0+Usy9qNVB7jp7imU=; b=R/rL2HN5WaczaDunS1s5y0XbmYRsyLDwGKakTBHuZa 631GpQj37VTv+hCQmQKKGM+b/BxTl28TfTNYC4ophrpPni23dPaL+8YMgpozztDA HuPaRY0GI/GMWf5sk/ubZHxI2/7NI1F3bSsQx/zlBAR2muJBaQA6psLpNHb8clOH INFSfyBu18cmKx4EFMS9YAV4lcIeGEwwA7B4LOwC9/HVJAmFqUWurlx1c9rRnMXu 10IuPJTC6ll4k2yDCwoGN8lIWujSn+8U2+YAf8lufx7mVaWDeeRXEREEy05WGB1f ZmYlFi6Bbbm/bBYteMqI9Ajt3eQHfkeR6YIDjdzU5hsg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=7BNrai Q89rUEyt+8LHDGIUz+Br0+Usy9qNVB7jp7imU=; b=zkvmq5DeWAla4L2wyTY3/4 PZAc3ZH1nsXBhLxHn9NI3IafIY/Tb2twqT9zigp9exAy85XSaPM+zNWrGJGm0irs QcHogictLhJSCf7xWFkZvv94eBaeJP+mSSblkNZPQUhxmy+PkhnXScq6OeVCl5hP gHom1LE6w+tP+BGR9Ba5DNMgnjPJB6HfkClhERQaVCTE7QkT/jih5GfV7HYLdi6k qutBFqjV33osjCy0X+WMZSbCdEwvFLHHwXwkmWfy/Y4ehRO7jPQk66+xnX3Iux8C b0xZEBXyFEzFlXAAehoBgiackV8Spkg8S8LFWgz/eVx8UWzEm+17OiCzd2nSrAlA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrieefgdelhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffujghffffkgggtsehttdertddttddtnecuhfhrohhmpefmohhnrhgrugcu jfhinhhsvghnuceokhhonhhrrggurdhhihhnshgvnhesfhgrshhtmhgrihhlrdhnvghtqe enucggtffrrghtthgvrhhnpeeikeejjeevueeifeejhedtgeethfdutefgveffhfeuheej veeiieegvdfhtdeifeenucfkphepjeejrddvtdehrdduhedvrddufeehnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepkhhonhhrrggurdhhihhn shgvnhesfhgrshhtmhgrihhlrdhnvght X-ME-Proxy: Received: from KHs-MacBook (135.152.205.77.rev.sfr.net [77.205.152.135]) by mail.messagingengine.com (Postfix) with ESMTPA id 389153280063; Wed, 29 Apr 2020 12:04:43 -0400 (EDT) From: Konrad Hinsen In-Reply-To: References: <875zeiudjm.fsf@gnu.org> <87mu7slwwh.fsf@gnu.org> <87mu7na8g6.fsf@gnu.org> Date: Wed, 29 Apr 2020 18:04:40 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 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" X-Scanner: scn0 X-Spam-Score: 0.09 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=fastmail.net header.s=fm3 header.b=R/rL2HN5; dkim=fail (rsa verify failed) header.d=messagingengine.com header.s=fm2 header.b=zkvmq5De; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fastmail.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Scan-Result: default: False [0.09 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.49347714306868]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; R_DKIM_REJECT(1.00)[fastmail.net:s=fm3,messagingengine.com:s=fm2]; DWL_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; FREEMAIL_FROM(0.00)[fastmail.net]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.17), country: US(-0.00), ip: 2001:470:142::17(-0.49)]; DKIM_TRACE(0.00)[fastmail.net:-,messagingengine.com:-]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_IN_DNSWL_FAIL(0.00)[2001:470:142::17:server fail]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; FROM_NEQ_ENVFROM(0.00)[konrad.hinsen@fastmail.net,guix-patches-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_LIST_UNSUB(-0.01)[]; RECEIVED_SPAMHAUS_PBL(0.00)[77.205.152.135:received]; RCVD_COUNT_SEVEN(0.00)[11]; FORGED_SENDER_MAILLIST(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[fastmail.net : SPF not aligned (relaxed),none] X-TUID: VMKAiU9F1H9b Hi Simon, > If I understand well > guix run-script file1 file2 > is becoming: > guix repl --script=file1,file2,... > right? > > Well, I would say that > > --8<---------------cut here---------------start------------->8--- > the keyword "repl" stand for Read-Eval-Print-Loop > therefore the command will: > - read the script file1, > - eval it, > - print the results if they are, > - and finally loop if there is more than one script file. > --8<---------------cut here---------------end--------------->8--- That's very clever! The weak spot is the P, as script evaluation does not print anything. We could make it print the script's return code ;-) > But applying the same principles, the command > guix environment --ad-hoc python -- python > could mystified the learner too, if for example they forgets --ad-hoc > or '-- python'. Indeed. I never said that existing Guix commands are perfect ;-) In fact, I remember some debate about precisely the case of "guix environment". > And I still have in my stack how to propose another CLI naming as we > discussed earlier, e.g., > environment, package, etc. > reorganized into > profile, install, search, etc. The CLI as an eternal construction site ;-) Cheers, Konrad