From: Francesco Corte <francesco.corte9001@gmail.com>
To: 66852@debbugs.gnu.org
Subject: bug#66852: Pipes not working in MSYS2
Date: Tue, 31 Oct 2023 17:43:36 +0000 [thread overview]
Message-ID: <7cc72215-8b0d-4e5a-96b4-2856392eb75f@gmail.com> (raw)
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
#<eof>
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!
reply other threads:[~2023-10-31 17:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7cc72215-8b0d-4e5a-96b4-2856392eb75f@gmail.com \
--to=francesco.corte9001@gmail.com \
--cc=66852@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).