Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perl pipes broke sometime recently #230

Open
chrishecker opened this issue Oct 25, 2024 · 1 comment
Open

perl pipes broke sometime recently #230

chrishecker opened this issue Oct 25, 2024 · 1 comment

Comments

@chrishecker
Copy link

chrishecker commented Oct 25, 2024

I had this working with an older version of msys2, which had kind of been piecemeal updated so I can't really say a version, but then I did a full update recently and perl pipes from another executable broke. So I did a fresh install today with no packages (except what is installed by msys2-x86_64-20240727.exe) and it is still broken.

Here is the perl:

use strict;
use warnings;

# cmd /c needed to work with msys2
my $cmdline = "cmd /c \"echo hello\"";
open(my $exe, "-|", $cmdline) || die;
while(<$exe>) {
  chomp;
  print "\r$_";
}
close $exe;

The hello never shows up. It works fine with strawberry perl and cygwin perl. Occasionally after hitting ctrl-c you get a The process tried to write to a nonexistent pipe. message, but it seems sporadic.

This seems related: msys2/MSYS2-packages#2471

Thanks,
Chris

@jeremyd2019
Copy link
Member

There have been several pipe-related issues lately. I don't remember them all off-hand, but git-for-windows/msys2-runtime#75 was one that I saw recently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants