From unknown Sun Jun 22 11:46:48 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66852: Pipes not working in MSYS2 Resent-From: Francesco Corte Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 31 Oct 2023 18:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66852 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 66852@debbugs.gnu.org X-Debbugs-Original-To: bug-guile@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169877804016553 (code B ref -1); Tue, 31 Oct 2023 18:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 31 Oct 2023 18:47:20 +0000 Received: from localhost ([127.0.0.1]:49167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qxtln-0004Iu-M9 for submit@debbugs.gnu.org; Tue, 31 Oct 2023 14:47:20 -0400 Received: from lists.gnu.org ([2001:470:142::17]:54730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qxsms-0005oH-K3 for submit@debbugs.gnu.org; Tue, 31 Oct 2023 13:44:26 -0400 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 1qxsmE-0003De-8y for bug-guile@gnu.org; Tue, 31 Oct 2023 13:43:42 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qxsmC-0000nI-Pt for bug-guile@gnu.org; Tue, 31 Oct 2023 13:43:42 -0400 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-32d80ae19f8so4024732f8f.2 for ; Tue, 31 Oct 2023 10:43:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698774218; x=1699379018; darn=gnu.org; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=lDltzjK97I0S5svxlvieS8pqyjk3zntz8s5862uQOQI=; b=fmZkYBBQ4WAOiWqTc6T6/LrAYhOVSxyrxB5I/Lj+EtWOuXtLs64FLax1ch834qNeVu aQnI+Pb2xkLAGEHzckKvalfBrjG9cA+kYAeeHILOsURvJDWAraV56fhm/fzrTdd5Ieqb Y04FbiqLKtH0W8CbNSdZ8FMHAadmOc3VrkEcY3nzGZnffYN2kzjXSz+a406nX2pZYTkY /2DzLeVvHsVfsb7oJpWbWPbLLf6uTQPojaV3LhW57OnSSc39zKaFFY4+6LE+dDgnPwNS J2SgmnBFSCtH2P11EKJMuQ4mvDEgXn/gAgO1i9k9xDs0bXYYw89MAitvAgw05raSH3gA 8NuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698774218; x=1699379018; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=lDltzjK97I0S5svxlvieS8pqyjk3zntz8s5862uQOQI=; b=RqsdiyWCi/34Nl8XvQ0gAOjSy3xhxu0pt7pIsGscOZtF/Kby8T0qJFpxPiGpOMZ8Ap y27iZvifkA+8WVVmjpiNsbNBkbOaAUlzaQrYehTmvQS29UsLFDLgWgS4NYP7KzGFlPaN bVHfzJhfIeotQxOA03fAjcbaliuw/JATTeSbQhP13dMxEHWLFxOjQ55Z3lmr9zZPO3TV 0L88XVo7eVm2QiM1TNm9c8YIecYgg9bHM3MPWd867dba5uAdIhdjRUS+eHaGiV7CQE0W qE4nXiNFcqQTcvqjSO5jqF/R5spj369DHFRDNp/lx8PPd3tzvpJB6S4bix0ONevnwTVh 9ojw== X-Gm-Message-State: AOJu0YwNxS8NRR8e4IC6qAUi/AnBhBEYWVqqZT3mghyppirlWUyxcS/E BZiDZyeadBPLtqEI1Gr/4BDor1VuaGc= X-Google-Smtp-Source: AGHT+IHbqlwbsKp1SLLtqE/g+nRZfqPH5TA+JCN1V6f6+tVh1ebc+GiOqh9sENlRrwgDoU5/12aX9Q== X-Received: by 2002:a05:6000:1ac7:b0:31f:fa61:961d with SMTP id i7-20020a0560001ac700b0031ffa61961dmr10811363wry.63.1698774218402; Tue, 31 Oct 2023 10:43:38 -0700 (PDT) Received: from [192.168.1.27] (host-92-29-76-217.as13285.net. [92.29.76.217]) by smtp.gmail.com with ESMTPSA id j15-20020adfff8f000000b0032de6f95fb3sm2001459wrr.40.2023.10.31.10.43.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 Oct 2023 10:43:37 -0700 (PDT) Message-ID: <7cc72215-8b0d-4e5a-96b4-2856392eb75f@gmail.com> Date: Tue, 31 Oct 2023 17:43:36 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-GB From: Francesco Corte Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=francesco.corte9001@gmail.com; helo=mail-wr1-x42d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello Pipes are not working in Windows (MSYS2) here is an example program Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (francesco.corte9001[at]gmail.com) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (francesco.corte9001[at]gmail.com) X-Mailman-Approved-At: Tue, 31 Oct 2023 14:47:18 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.2 (/) Hello Pipes are not working in Windows (MSYS2) here is an example program (use-modules (ice-9 popen) (ice-9 rdelim)) (let ((pipe (open-pipe* OPEN_READ "uname"))) (display (read-line pipe)) (close-pipe pipe)) and its output λ guile -s main.scm # of course `uname` works in the shell (bash λ uname MSYS_NT-10.0-19045 the *features* variable signals that pipes are in theory available scheme@(guile-user)> *features* $1 = (readline record defmacro debug-extensions values array-for-each array sort socket net-db regex popen fork EIDs posix readlink-port chdir-port inexact complex random i/o-extensions i18n current-time delay threads char-ready? system) here is the version of guile I'm using λ guile --version guile (GNU Guile) 3.0.9 Copyright (C) 2023 Free Software Foundation, Inc. I tried the other `open-pipe` function, to the same result. Interestingly, `(system "uname")` works as expected. both `popen` and `pclose` are available as stdio.h functions, I made sure by writing essentially the same program as above in C. Thanks!