[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GUILE_QUIET: need help with redirection
From: |
Matt Wette |
Subject: |
GUILE_QUIET: need help with redirection |
Date: |
Sun, 6 Oct 2024 07:13:02 -0700 |
User-agent: |
Mozilla Thunderbird |
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
- GUILE_QUIET: need help with redirection,
Matt Wette <=