GUILE_QUIET: need help with redirection

Matt Wette <[email protected]>
Newsgroups gmane.lisp.guile.devel
Message-ID <[email protected]>
Hi All,

I'm working on an update to guile to output some messages (e.g., 
auto-compile) to a new
`current-info-port', which is set to stderr by default.   I also added 
update to output the
welcome message, ending in "Enter `,help' for help.".   However, this 
breaks the
`00-repl-server' test which is looking for that message.  The test forks 
guile and closes stderr,
so it won't see the message ordinarily.   I tried to fix by setting 
`current-info-port' to
`current-output-port'.   But that does not work.    I now see the 
welcome message printed to
the screen during the test.   I guess the message is sitting in the 
stderr output buffer before
the fork happens.   So, options are:
1) Leave welcome message as is, going to stdout.
2) Find a way to make 00-repl-server.test work.
3) Initialize current-info-port to stdout (ugly)
4) Add some other hook in system/repl/common.scm(repl-welcome) to deal 
with it (ugly)

Any ideas?

Matt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.