From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: pinoaffe Newsgroups: gmane.lisp.guile.bugs Subject: bug#43364: Possible bug with output redirection Date: Sat, 12 Sep 2020 22:59:23 +0200 Message-ID: <20200912225923.5fa9504e@airmail.cc> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19315"; mail-complaints-to="usenet@ciao.gmane.io" To: 43364@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Sat Sep 12 23:00:09 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 1kHCcz-0004tK-2p for guile-bugs@m.gmane-mx.org; Sat, 12 Sep 2020 23:00:09 +0200 Original-Received: from localhost ([::1]:51600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHCcy-0000S8-3a for guile-bugs@m.gmane-mx.org; Sat, 12 Sep 2020 17:00:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHCct-0000Ro-3K for bug-guile@gnu.org; Sat, 12 Sep 2020 17:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37546) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHCcs-0001Ic-OG for bug-guile@gnu.org; Sat, 12 Sep 2020 17:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kHCcs-0005Jb-Ls for bug-guile@gnu.org; Sat, 12 Sep 2020 17:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: pinoaffe Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 12 Sep 2020 21:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 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.159994436920364 (code B ref -1); Sat, 12 Sep 2020 21:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Sep 2020 20:59:29 +0000 Original-Received: from localhost ([127.0.0.1]:49092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHCcL-0005IO-IY for submit@debbugs.gnu.org; Sat, 12 Sep 2020 16:59:29 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:46258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHCcI-0005IF-QS for submit@debbugs.gnu.org; Sat, 12 Sep 2020 16:59:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHCcI-0000Qu-5N for bug-guile@gnu.org; Sat, 12 Sep 2020 16:59:26 -0400 Original-Received: from mail.cock.li ([37.120.193.124]:60756) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHCcF-0001F9-C6 for bug-guile@gnu.org; Sat, 12 Sep 2020 16:59:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=airmail.cc; s=mail; t=1599944357; bh=4E8YYhRmLJnHRIkOvaSd+x79BdS7W4C15BP5HaTYa2k=; h=Date:From:To:Subject:From; b=A3INCqM88JNkxMK0LCufN3T7F2fwuEGWbWsgJW0P7oYu7tFh2ZRbCSLHDvRha2UrQ sWOeB4SgS1LG7VvuLrl1Yhq+/nRns4xfWLhK99vgl4bNf5qtdN+DwRnPYYYc+JcUVm nxfGOKJwE8firlt/ISOSe1soa/GCRaDquFtwI2d3UPMj+hvfFgJD+R3kSw6U2+ttba rOEJOge9Urdqo9DndjOJd38cAOJyWhzYEdxE4WzJWhRGpziaP6IXl+bRQMOpTSazIf ZKQ8EkYL0LlELtSJhd15s8F1a1C66rIpyysdnsnESG5uwloHAzZOzzf0kxTPxhyZvq REteI56Hjmg/Q== X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) Received-SPF: permerror client-ip=37.120.193.124; envelope-from=pinoaffe@airmail.cc; helo=mail.cock.li X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/12 16:59:18 X-ACL-Warn: Detected OS = Linux 3.11 and newer [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, T_SPF_PERMERROR=0.01 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:9882 Archived-At: Dear guilers, 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. As an example: I'd expect snippet [0] to behave like snippet [1] and return "bar", instead it just returns the empty string. This probably affects other similar functions. Pandemically, pinoaffe [0]: (with-output-to-string (lambda () (system* "echo" "bar"))) [1]: (with-output-to-string (lambda () (display "bar")))