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 ms11 with LMTPS id KDX7KUAIr19+YgAA0tVLHw (envelope-from ) for ; Fri, 13 Nov 2020 22:27:12 +0000 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 MJG+JUAIr191dgAAbx9fmQ (envelope-from ) for ; Fri, 13 Nov 2020 22:27:12 +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 2F8D69400BF for ; Fri, 13 Nov 2020 22:27:12 +0000 (UTC) Received: from localhost ([::1]:47636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdhXB-0001oL-AZ for larch@yhetil.org; Fri, 13 Nov 2020 17:27:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdhX4-0001oD-Hr for bug-guix@gnu.org; Fri, 13 Nov 2020 17:27:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37945) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdhX4-0005Hh-83 for bug-guix@gnu.org; Fri, 13 Nov 2020 17:27:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kdhX4-0003r6-19 for bug-guix@gnu.org; Fri, 13 Nov 2020 17:27:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#44612: Read standard input in `guix repl' Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 13 Nov 2020 22:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44612 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Bengt Richter , Pierre Neidhardt Received: via spool by 44612-submit@debbugs.gnu.org id=B44612.160530638614773 (code B ref 44612); Fri, 13 Nov 2020 22:27:01 +0000 Received: (at 44612) by debbugs.gnu.org; 13 Nov 2020 22:26:26 +0000 Received: from localhost ([127.0.0.1]:49491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdhWU-0003qD-A6 for submit@debbugs.gnu.org; Fri, 13 Nov 2020 17:26:26 -0500 Received: from mail-wm1-f44.google.com ([209.85.128.44]:37290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdhWQ-0003py-Ro for 44612@debbugs.gnu.org; Fri, 13 Nov 2020 17:26:25 -0500 Received: by mail-wm1-f44.google.com with SMTP id c16so12181465wmd.2 for <44612@debbugs.gnu.org>; Fri, 13 Nov 2020 14:26:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=KEL5AkuCzKyjDpJyL4CDJXtq9XxUIsJQXE0AJoPVuuo=; b=NlfWi1MQdDZccPEfSXjnYzrgQupm+J0jg6l6225ZFBOPn0TWSmNzZpMU5uWPxtCc5T T7mNvcTkhAf3i3MBx5wfOUUkBiNPxUCSsRjpEcsRGAGlRtxxUNdDCrUkqiuJMpEKxkDp 3h1Q7l3O7V/XnyPQ1oLhHRdfj6lxe6Y/IPUHNs4VvH5qOcLBMfQQLRGilj9wvqAhsJTA OA9fJlolC1GL5GXXKY6JKw2V8YfOWpxpCPuVXkzsjiXuDINZ7rhIWNpWOLdvKzJvJEbj 2IzzXFxya5jSejrF0n7axArIIx045s2lXQNi+HTvZxIagw38q3ZW9GlFUj3MXNOC0Ag5 MkxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=KEL5AkuCzKyjDpJyL4CDJXtq9XxUIsJQXE0AJoPVuuo=; b=krgnTRlbtZE9Ycom9/iiHROcReGjc+9oe5+WpWEdXJ9yXOIOQEPwEhCWhuR1LgOCoL jYW7khy2JepDu0R2LcgHmUNaOPDIbJ63uUjEpCPLNm0+y2CmKqlzRMyJwKJePWKAeolk R/9PuS5uxKb5whh0i3fQZR2ifepAHWBRHG2xiC1JBeIpFxwiU0lvp4gBVmcZvmnjczBq qIvqrnmsGauSzFGA+ZKOEIAHunh+eO9M3911S/UMHQwyWa+p6JQ8BsDtVm/eSPJz47XG enKVwWWtQBFGjqmTsPqcHLSV1IO20L2FBcxof6x5+ZaqtAerRBs51iNQOHqssVdk8m1l P9Sg== X-Gm-Message-State: AOAM530U8X8gTMjWaTJ53ltc4PSMcw7icYnKL9WeEBFj+G2hWo7wmhDT tviNGZV8drQwPF8lxhpAMUOSRSrIK273YA== X-Google-Smtp-Source: ABdhPJz8p4b5W7Ak/LbJ/u2RrN90b75FnEQS0FOLZdyYFrPf92v3ci5JB0pWtU++w2ILkH6XiLPXMQ== X-Received: by 2002:a1c:f312:: with SMTP id q18mr4595862wmq.30.1605306376674; Fri, 13 Nov 2020 14:26:16 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id g20sm11419436wmh.20.2020.11.13.14.26.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 14:26:16 -0800 (PST) From: zimoun In-Reply-To: <20201113190830.GA2995@LionPure> References: <87h7ptzj8t.fsf@ambrevar.xyz> <20201113190830.GA2995@LionPure> Date: Fri, 13 Nov 2020 23:24:26 +0100 Message-ID: <86mtzkdhet.fsf@tournier.info> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 2.0 (++) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: 1.0 (+) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 44612@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=NlfWi1MQ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: OV6waki38/SO Dear, On Fri, 13 Nov 2020 at 20:08, Bengt Richter wrote: > Would this enable people to type something like > wget -O - http:try.this.for.example.com/fun.mischief|guix repl - > and if so, can you suggest some options for automatic hash or signature > checking so that a paranoid could feel safe using a file pointed to > by a friend?=20 How is it different to: cat file | guix repl or guix repl -- file ? =C2=AB Stupid is as stupid does, sir. =C2=BB Well, it is hard nor impos= sible to prevent people to shoot themselves in their foot if they really want to. Somehow. For instance, --8<---------------cut here---------------start------------->8--- $ cat /tmp/foo.scm | guix repl GNU Guile 3.0.4 Copyright (C) 1995-2020 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. name: hello version: 2.10 outputs: out systems: x86_64-linux i686-linux dependencies:=20 location: gnu/packages/base.scm:74:2 homepage: https://www.gnu.org/software/hello/ license: GPL 3+ synopsis: Hello, GNU world: An example GNU package=20=20 description: GNU Hello prints the message "Hello, world!" and then exits. = It serves as an example of standard GNU coding practices. As such, it supp= orts command-line arguments, multiple languages, and so on. $1 =3D #t scheme@(guix-user)>=20 $ cat /tmp/foo.scm (use-modules (gnu packages base) (guix scripts show)) (guix-show "hello") --8<---------------cut here---------------end--------------->8--- All the best, simon