develooper Front page | perl.perl5.porters | Postings from June 2022

Sudden inability to shell out in Windows

Thread Next
From:
Eric Brine
Date:
June 5, 2022 17:50
Subject:
Sudden inability to shell out in Windows
Message ID:
CALJW-qEgQCjAVcH6f----sVB8z18LCOk746aXYa2noQY7LmY2g@mail.gmail.com
Hi,

Two people have reported a sudden inability to shell out from Perl in
Windows

https://stackoverflow.com/questions/72503807/perl-calls-using-system-abruptly-start-failing

> This week one of my standard perl [Strawberry perl 5, version 32,
> subversion 1 (v5.32.1) built for MSWin32-x64-multi-thread] scripts started
> failing. I tracked it down to a failing backtick operation.
>
> Investigation showed that all the system-type calls, backtick, qx, pipe
> open, are failing. I tried building a debug version of perl, and even that
> fails, as the build process uses miniperl, which has the same problem.
>
> ..\miniperl.exe -I..\lib ..\make_ext.pl "MAKE=nmake -nologo"
> --dir=..\cpan --dir=..\dist --dir=..\ext --nonxs
> Can't spawn "cmd.exe": No such file or directory at ..\make_ext.pl line
> 580.
> Can't spawn "cmd.exe": No such file or directory at ..\make_ext.pl line
> 582.
> Unsuccessful make(dist/if): code=65280 at ..\make_ext.pl line 584.
>
> I tried defining PERL5SHELL (full path to cmd, pwsh in place of cmd),
> turning off malware protection, everything I could think of reverting.
>
> So, the actual question: Does anyone have a suggestion for how I can track
> this down? It was working on Thursday, and there have been no system
> updates since then [OS version 10.0.22000].
>
Has this happened to anyone else?

I have no issues with SP 5.32.1 on Win11.

- Eric

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About