From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Csepp Newsgroups: gmane.lisp.guile.devel Subject: help needed with stderr redirection Date: Sat, 22 Oct 2022 01:29:05 +0200 Message-ID: <875ygceop6.fsf@riseup.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26991"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Sat Oct 22 03:23:17 2022 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 1om3EK-0006sI-Pz for guile-devel@m.gmane-mx.org; Sat, 22 Oct 2022 03:23:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1om2uQ-0006bz-4B; Fri, 21 Oct 2022 21:02:42 -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 1om1XC-0004Pk-21 for guile-devel@gnu.org; Fri, 21 Oct 2022 19:34:38 -0400 Original-Received: from mx1.riseup.net ([198.252.153.129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1om1X8-0004kL-8S for guile-devel@gnu.org; Fri, 21 Oct 2022 19:34:37 -0400 Original-Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4MvLQh6McvzDqLc for ; Fri, 21 Oct 2022 23:34:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1666395271; bh=r2v8Z368O0GYB+GIfBp4ipz3jITNZD3pG/P7bzedu0A=; h=From:To:Subject:Date:From; b=M52p5GEcrMymLmPQ5qTHPEoVYnGza9wTBXUsBJrSTQS55nc1qDP/GFy5w52WRRyP6 1WY4Tb0WuKxx00P2EQfy8ikRjmN7sCl4Y1mxZb4rOHPLWVM6BZLdzMyEvJ1Vec7A+U w3/eiV8ZMrFL4hIPoiO+YFsZXiQdV2KiKWFoXSHw= X-Riseup-User-ID: C6EE8E794C4F5A42E6214B0446C92712B864A20F03ED41A346E3355F26FC3A60 Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4MvLQh1hFsz214Q for ; Fri, 21 Oct 2022 23:34:17 +0000 (UTC) Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 21 Oct 2022 21:02:40 -0400 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: , Original-Sender: "guile-devel" Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:21447 Archived-At: I have this short snippet of code for a Guix related utility script and for the love of the Glowcloud it does not want to work. I want to filter stderr for certain lines and they are not being redirected. When running the full script from a shell, it correctly captures standard out, but all the warnings and errors from the subprocess and/or its children go directly to the terminal. I looked in the Guix sources to see how others do it and found mention of a possibly related bug: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=52835 Is that still relevant? Because debuggs is just, khm, great, I don't see any clear indication of what its status is. (define (with-input-from-make thunk) (with-error-to-port (current-output-port) (lambda _ (with-input-from-port (open-pipe* OPEN_READ "make") thunk))))