GNU bug report logs - #43364
Possible bug with output redirection

Previous Next

Package: guile;

Reported by: pinoaffe <pinoaffe <at> airmail.cc>

Date: Sat, 12 Sep 2020 21:00:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: pinoaffe <pinoaffe <at> airmail.cc>
To: 43364 <at> debbugs.gnu.org
Subject: bug#43364: Possible bug with output redirection
Date: Sat, 12 Sep 2020 22:59:23 +0200
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")))




This bug report was last modified 1 year and 50 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.