GNU bug report logs -
#43364
Possible bug with output redirection
Previous Next
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.