From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +PD6OdwBsF95TwAA0tVLHw (envelope-from ) for ; Sat, 14 Nov 2020 16:12: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 mp2 with LMTPS id 8LPQNdwBsF+uQgAAB5/wlQ (envelope-from ) for ; Sat, 14 Nov 2020 16:12: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 77614940657 for ; Sat, 14 Nov 2020 16:12:12 +0000 (UTC) Received: from localhost ([::1]:48822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdy9r-0000Kd-8g for larch@yhetil.org; Sat, 14 Nov 2020 11:12:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdy9j-0000Jy-6N for bug-guix@gnu.org; Sat, 14 Nov 2020 11:12:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40156) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdy9i-0002e7-Se for bug-guix@gnu.org; Sat, 14 Nov 2020 11:12:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kdy9i-0004rl-Ow for bug-guix@gnu.org; Sat, 14 Nov 2020 11:12:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#44612: Read standard input in `guix repl' Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 14 Nov 2020 16:12:02 +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: Tobias Geerinckx-Rice X-Debbugs-Original-Cc: bug-guix@gnu.org, 44612@debbugs.gnu.org Received: via spool by 44612-submit@debbugs.gnu.org id=B44612.160537027318644 (code B ref 44612); Sat, 14 Nov 2020 16:12:02 +0000 Received: (at 44612) by debbugs.gnu.org; 14 Nov 2020 16:11:13 +0000 Received: from localhost ([127.0.0.1]:51701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdy8v-0004qY-1G for submit@debbugs.gnu.org; Sat, 14 Nov 2020 11:11:13 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:55091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdy8s-0004qD-RY for 44612@debbugs.gnu.org; Sat, 14 Nov 2020 11:11:11 -0500 X-Originating-IP: 90.92.160.122 Received: from bababa (lfbn-idf2-1-1094-122.w90-92.abo.wanadoo.fr [90.92.160.122]) (Authenticated sender: mail@ambrevar.xyz) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 0E54F40007; Sat, 14 Nov 2020 16:11:03 +0000 (UTC) From: Pierre Neidhardt In-Reply-To: <878sb459cf.fsf@nckx> References: <87h7ptzj8t.fsf@ambrevar.xyz> <87zh3l6lzk.fsf@nckx> <87h7ps8duy.fsf@ambrevar.xyz> <87lff46v32.fsf@nckx> <87sg9cxeif.fsf@ambrevar.xyz> <878sb459cf.fsf@nckx> Date: Sat, 14 Nov 2020 17:11:03 +0100 Message-ID: <87tutrx6js.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 2.5 (++) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: 2.5 (++) 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=none; dmarc=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: -3.11 X-TUID: BmWZY2sfhreC --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Tobias Geerinckx-Rice writes: > Pierre, > > Pierre Neidhardt =E5=86=99=E9=81=93=EF=BC=9A >> and... it works! O.o > > Don't you hate it when that happens? Ban bug suicide. > > (Does that mean this one can be closed? Or retitled, We can retitle it to remove the Guile banner indeed. > if we want to debug Nyxt? :-) Err... I'm confused, this is not about Nyxt :p >> For future reference, it's also works in Common Lisp: >> (uiop:run-program '("guix" "repl") :input s :output t=20 >> :error-output nil)) > > Well, I stranded trying to import (or whatever the CL term is)=20 > UIOP itself, but my Common Lisp-fu is hella weak. If you tried with SBCL, then you need to first require UIOP: =2D-8<---------------cut here---------------start------------->8--- (require :uiop) (with-input-from-string (s "(display \"foo\\n\")") (uiop:run-program '("guix" "repl") :input s :output :string :error-output= nil)) =2D-8<---------------cut here---------------end--------------->8--- > This reminds me: do you want Nyxt to call =E2=80=98guix repl -q=E2=80=99 = to skip=20 > loading ~/.guile to make your UI more predictable & debuggable?=20 > Or keep it as an escape hatch for cool hacks? Oops, thanks for the reminder. Will do indeed, I don't think it's needed in Nyxt. Or maybe make it optional. Well, if someone ever complains about it... Cheers! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl+wAZcSHG1haWxAYW1i cmV2YXIueHl6AAoJEJvc9Jeku8x/9goIAJR9xhCATdsyd5FVpHPAhOWt1toplsS6 93ZWTeK0z2I3/TMHGaRxAEL/ZBIHCdHomvkUS98Fg/e3jx9IsxCsKvf1wP1jNIfq nILb5TRNVj8pHynSNbxO8V7K2sKNzm1FcbUGG+YfsCgUMiKr/nTNbO0cbVsUn1Fu i940cc53mpUGYory2dGpp3BRUHFuChANGJbUzlTD1EnURb3XpPGrBYhdpRd2rc0A fv7e5ggKaD9hzPxVVwLEBUwArOZp7U6WMtHqw/7BZTw9q8swras/jh0VKQz6x87t jRr3NP29BQzViQ0f46cRgn3G9jFoMknWS7Z3lLOhlte3oGVE2TyJrQ0= =8fbT -----END PGP SIGNATURE----- --=-=-=--