develooper Front page | perl.perl5.porters | Postings from February 2018

Re: [perl #132902] Blead Breaks CPAN: Class::Std

Thread Previous | Thread Next
From:
demerphq
Date:
February 28, 2018 15:03
Subject:
Re: [perl #132902] Blead Breaks CPAN: Class::Std
Message ID:
CANgJU+VKBy+nHNzfXX8ar1DZi8SvSxDi6dtU6WEhws1FPbc-_g@mail.gmail.com
On 28 February 2018 at 06:41, Father Chrysostomos via RT
<perlbug-followup@perl.org> wrote:
> On Tue, 27 Feb 2018 20:21:24 -0800, bulk88 wrote:
>> On Tue, 27 Feb 2018 20:04:14 -0800, bulk88 wrote:
>> > Commit 5c8d fails badly on Windows for me.
>>
>> There are no quotes in the cmd line to the process
>> ------------------------
>> Command line:   C:\p525\src\t\perl.exe -e
>>          use Carp;
>>          sub foom {
>>              Carp::confess("Looks lark we got a error: $_[0]")
>>          }
>>          BEGIN {
>>              *{"o::()"} = sub {};
>>              *{'o::(""'} = sub {"hay"};
>>              $o::OVERLOAD{dummy}++; # perls before 5.18 need this
>>              *{"CODE::()"} = sub {};
>>              $SIG{__DIE__} = sub { foom (@_, bless([], o), sub {}) }
>>          }
>>        $a +
>>
>> ------------------------------------
>>
>> but Carp.t which has identical code (or almost?) does put "s in the
>> command line foe -e's arg.
>
> I suspect IPC::Open3 (or something it calls) is adding the quotation marks if the argument has none.
>
> Would it be feasible to feed the program to stdin and drop -e?

I just pushed:

commit 01d4cc0fe2b9e198c9146d4c84e781b5d2d3117f
Author: Yves Orton <demerphq@gmail.com>
Date:   Wed Feb 28 16:02:17 2018 +0100

    rework Carp/t/stack_after_err.t to not use perl -e

cheers,
Yves


-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Previous | 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