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 OI2FI2P7r19aHQAA0tVLHw (envelope-from ) for ; Sat, 14 Nov 2020 15:44:35 +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 wFZWH2P7r19GMAAAB5/wlQ (envelope-from ) for ; Sat, 14 Nov 2020 15:44:35 +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 018119403EA for ; Sat, 14 Nov 2020 15:44:35 +0000 (UTC) Received: from localhost ([::1]:60214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdxj6-0007oY-ME for larch@yhetil.org; Sat, 14 Nov 2020 10:44:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59732) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdxic-0007m7-Cy for bug-guix@gnu.org; Sat, 14 Nov 2020 10:44:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40097) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdxic-0000gg-30 for bug-guix@gnu.org; Sat, 14 Nov 2020 10:44:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kdxib-00047b-Vv for bug-guix@gnu.org; Sat, 14 Nov 2020 10:44:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#44612: Read standard input in `guix repl' Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 14 Nov 2020 15:44: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: Pierre Neidhardt Received: via spool by 44612-submit@debbugs.gnu.org id=B44612.160536858815768 (code B ref 44612); Sat, 14 Nov 2020 15:44:01 +0000 Received: (at 44612) by debbugs.gnu.org; 14 Nov 2020 15:43:08 +0000 Received: from localhost ([127.0.0.1]:51641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdxhj-00046G-MG for submit@debbugs.gnu.org; Sat, 14 Nov 2020 10:43:07 -0500 Received: from mira.cbaines.net ([212.71.252.8]:42522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdxhi-000466-01 for 44612@debbugs.gnu.org; Sat, 14 Nov 2020 10:43:06 -0500 Received: from localhost (188.28.119.104.threembb.co.uk [188.28.119.104]) by mira.cbaines.net (Postfix) with ESMTPSA id 0E97B27BBF4; Sat, 14 Nov 2020 15:43:05 +0000 (GMT) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id cabb3cfb; Sat, 14 Nov 2020 15:43:02 +0000 (UTC) References: <87h7ptzj8t.fsf@ambrevar.xyz> <87zh3l6lzk.fsf@nckx> <87h7ps8duy.fsf@ambrevar.xyz> <87lff46v32.fsf@nckx> <87sg9cxeif.fsf@ambrevar.xyz> User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Baines In-reply-to: <87sg9cxeif.fsf@ambrevar.xyz> Date: Sat, 14 Nov 2020 15:43:02 +0000 Message-ID: <87a6vkc5bt.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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=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: -0.61 X-TUID: GeZvww+/wSk0 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Pierre Neidhardt writes: > Hey Tobias, > > Always good to have someone actually test the stuff :) > > Tobias Geerinckx-Rice writes: > >> So far this looks like an (SB)CL(-specific) bug, right? Does it=20 >> happen anywhere else? I tried Guile[0]. > > Maybe there was a misunderstanding, it's not about Common Lisp. > We can do easier than from Guile, i.e. from a shell: > > --8<---------------cut here---------------start------------->8--- > echo '(display "hello")' | guix repl > --8<---------------cut here---------------end--------------->8--- > > and... it works! O.o > > OK, my bad then, I mistested somehow. > > For future reference, it's also works in Common Lisp: > > --8<---------------cut here---------------start------------->8--- >> (with-input-from-string (s "(display \"foo\\n\")") > (uiop:run-program '("guix" "repl") :input s :output t :error-o= utput nil)) > 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. > foo > > --8<---------------cut here---------------end--------------->8--- > > However this brings me to another issue: the program output is prefixed > with the REPL welcome message which is printed to stdout. > > So ideally when we read from standard input we should not include the > welcome message. > > Any clue how to do that? I haven't been following along too closely, but I'm surprised guix repl =2D-type=3Dmachine hasn't been mentioned, is that relevant? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl+v+wZfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XeDQA//bIDVqo2UBiOBiCwCBwy9Z+vg0TGu+IEo Sv7YNAAw5qzBlNMb5scyxviEqqz+kmk6MI0dOG6+3yuK9XAxLx3zCS1YGbsG8FCT +EVL6XuinWrOjFiHhSUtebE9TbAZc+xc0KNX/FQTVSdd5iTKQleE2jCLSZwHU/Ci OgoMgGiy2gMWN0hoOlroWjVwCtFMR7I2FTRT5GYcUuwyhv9zIvQkolb7X76V9S7W cWoSQ8GI2yRMYubaF410JT9HY7Iew/AN31ZAz/Qivv03LCrahAETo01sWkQyUzD+ viuqy4khyp7yfxd5unaHHI3mV4N++P5WiUlA4FLrTnXqr4T4IaGfDUo5MaEepQch 3Ofgv003ZFp5IFxfPU5ywZ/tLyVQyLq82BxB4jhoGyOQJ4xFZdyPBU6hgVqsKhYy 8S6P9qmg+6rL5wDzsDbundGEUEzzIP47lHWZWh4cWuRMJSe7pSuuxEB8v/kLIBHj FGGgJ5g/gAX7Tx9VkGcp/N8/sfY/I0zHI0k3OQMQGSB3toVU2OlVd/JJpRZRYZu/ 5o98R2kj+WpoQnwOe516WCAEUrdsmiKF8faJpHKCQOk6Z0w+hxRQW+04GjO+IcPq 0CjfRQrJyKTltDxA7+Okl15hg1Z9PaVYeP4e4KM2tm4Bdgf4UuFB8BOwEBQNwnib xdu310blWD0= =CUny -----END PGP SIGNATURE----- --=-=-=--