From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.devel Subject: GUILE_QUIET: need help with redirection Date: Sun, 6 Oct 2024 07:13:02 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26709"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Sun Oct 06 16:13:32 2024 Return-path: Envelope-to: guile-devel@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 1sxS0q-0006rp-LR for guile-devel@m.gmane-mx.org; Sun, 06 Oct 2024 16:13:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxS0V-0001Ym-Mp; Sun, 06 Oct 2024 10:13:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sxS0T-0001Ya-0x for guile-devel@gnu.org; Sun, 06 Oct 2024 10:13:09 -0400 Original-Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sxS0Q-0000cB-RQ for guile-devel@gnu.org; Sun, 06 Oct 2024 10:13:08 -0400 Original-Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-71e029efecdso180022b3a.3 for ; Sun, 06 Oct 2024 07:13:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728223984; x=1728828784; darn=gnu.org; h=content-transfer-encoding:content-language:to:subject:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=we7n+8GPGV4bWr24auP3wVFZJw2p2rLo0ZACxcWmVTE=; b=UK6EvPXaefaOaRjm7ZwHqYYn4t7qUA0XvbbUn5MGAjTli/z5lOj8J3Ucf83mX9JtNU de0oD2LWbdup7TkgoIKJxHYBgalML68boF2Hg5Hvvrn844yEmAS8jCEagLVLcpZ2WLA1 SCe+HiQqp63RS/kIbXeFI0BmI5NVjsKarU1Fe7WgI2NVs73630I8P1ujuEywH2OjL4LT eVp+EifJ5HmU8R07k90ALukaA+OTK43++AnS+DSPnzUTpDeBpDetxPSPZjC9JjHlhTy+ 13U2rP+fDTQWCvnPehBKozkkgeLwFzvAkkyxt7AQSvDEbl76wa47MWMAzH7wzMpDB/jg gidg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728223984; x=1728828784; h=content-transfer-encoding:content-language:to:subject:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=we7n+8GPGV4bWr24auP3wVFZJw2p2rLo0ZACxcWmVTE=; b=h5+RfWVfuVrDHm1VavOitr6bKcTW4l6QaZ1JIpUjBzx1gM50b8wGMyVw41p045kJcm ddQgo5kIcEoQTUn9UynA71Dm1vH+KzRjdi4GJXmU5jRnbEf94pmeDRv9iPVTd8m8ILTY GkhjjDZUF+tlP7AAn9AN2+JH1Bqgbw1Pxni/GZyXn5pvc5xiKP6GRq6HeAsjTHJVqlEg flzOujb4y1K3Ig7EtEAMzRrm39q6ktp4PsuyhgJ2vO/mEg9zMTxMYaNLsgOJ4Ls2egxL Qz/G7A2PFsl93dJ1aArzqxAU/Hq7rA+OTnKftUXPZflVaKgSx24VnLuvGfWmlDv/e4aU p+Wg== X-Gm-Message-State: AOJu0Yw9akr35z86Y8+BC/hyOQU8UxxrH0gQKmz08/uaC1Jip+WfH0/y TpBiXNOdgXPqchkaIC9OC1HXWlQheLzc2Q67rmwgtR7iiovqoKxURLddOA== X-Google-Smtp-Source: AGHT+IG3Xw1JJ/Anyfo3j3a7EsDcYh+J4qZW4j6KQU1UdANwCoqAgPp7hdVq7lPMWGCdG0mEV0nPZg== X-Received: by 2002:a05:6a00:1702:b0:717:900d:7cbd with SMTP id d2e1a72fcca58-71de239dd3amr13679852b3a.5.1728223984080; Sun, 06 Oct 2024 07:13:04 -0700 (PDT) Original-Received: from [192.168.2.155] (64-52-138-37.championbroadband.com. [64.52.138.37]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71df0cd05f8sm2829215b3a.73.2024.10.06.07.13.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Oct 2024 07:13:03 -0700 (PDT) Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::436; envelope-from=matt.wette@gmail.com; helo=mail-pf1-x436.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:22720 Archived-At: 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