From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.bugs Subject: bug#43364: Possible bug with output redirection Date: Sun, 13 Sep 2020 09:13:02 +0200 Message-ID: <20200913071302.GA14385@tuxteam.de> References: <20200912225923.5fa9504e@airmail.cc> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GvXjxJ+pjyke8COw" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18946"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) To: 43364@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Sun Sep 13 09:14:12 2020 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHMDE-0004rH-4K for guile-bugs@m.gmane-mx.org; Sun, 13 Sep 2020 09:14:12 +0200 Original-Received: from localhost ([::1]:47990 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHMDD-0000Qx-6Z for guile-bugs@m.gmane-mx.org; Sun, 13 Sep 2020 03:14:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHMD4-0000Qj-3C for bug-guile@gnu.org; Sun, 13 Sep 2020 03:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37836) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHMD3-0002Gb-QO for bug-guile@gnu.org; Sun, 13 Sep 2020 03:14:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kHMD3-0003B8-Lo for bug-guile@gnu.org; Sun, 13 Sep 2020 03:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 13 Sep 2020 07:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43364 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.159998119912162 (code B ref -1); Sun, 13 Sep 2020 07:14:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Sep 2020 07:13:19 +0000 Original-Received: from localhost ([127.0.0.1]:49382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHMCN-0003A6-BS for submit@debbugs.gnu.org; Sun, 13 Sep 2020 03:13:19 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:42654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHMCM-00039y-Fw for submit@debbugs.gnu.org; Sun, 13 Sep 2020 03:13:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHMCM-0000OC-Ao for bug-guile@gnu.org; Sun, 13 Sep 2020 03:13:18 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:38056) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1kHMCK-0002Df-1s for bug-guile@gnu.org; Sun, 13 Sep 2020 03:13:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=cuc2uyAnYjFxdg93sSzoqUG6XOMb3k7A6TLHhGHu85s=; b=rZ2vjOoTArbaF/83jNcMQ8RFdapKZkcvyJesANUN1Z9HMiJ0TOx0F75+IsNQ0TAMy+fenu23krg7dF6sjSG33wiUzKxAaj3V63P/Jyae7x00Ute4akqiKTSrvE0p/jWIaVhN1ZZeKfBPkimAnwRcHMUQQouhzcSpyfD29Bwun0xF6+t2/pgtO4aR3i0C/UzS0y0UUoce+bEWHDYBnXVQwd7UPBd9rBtISCHag1c1cNY98voW05riGznQvNh7fw1XMJ83ffKprp4lbxBMhHw4i5y0LFxKmDLvkZiZqRm0cQzWAo6LGfDGiwG2K5BZQl5DV6UWbcbbTPhRoWgdhRzNlA==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1kHMC6-0003tO-7K for bug-guile@gnu.org; Sun, 13 Sep 2020 09:13:02 +0200 Content-Disposition: inline In-Reply-To: <20200912225923.5fa9504e@airmail.cc> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/13 03:13:02 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:9883 Archived-At: --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Sep 12, 2020 at 10:59:23PM +0200, pinoaffe wrote: > Dear guilers, >=20 > When using with-output-to-string, the output of external processes > started using system* and the like is not redirected to the temporary > port. As far as I can tell, it just redirects things written/displayed > from within guile. > This seems to be a bug, or if this is intended behaviour it might be > beneficial to document this somewhere. I think this is intentional (or rather: out of Guile's scope). While the Guile process's output functions are the scope of `with-output-to-string', the subprocess started with `system' just happens to inherit the standard output file descriptor, which is an operating system mechanism. No idea, for example, about what would happen under Windows or other (more or less) operating systems. But you are right that it can be a bit confusing. I'm not sure whether a hint in the doc would be in place. What do oters think? Cheers -- t --GvXjxJ+pjyke8COw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAl9dxn4ACgkQBcgs9XrR2kaCngCeLf56qrToFR9M8B/CF+dZFRAG Cq4An3gQWPGelvZ6Yhdc1CWkSy2UYCWg =Ho7R -----END PGP SIGNATURE----- --GvXjxJ+pjyke8COw--