develooper Front page | perl.perl5.porters | Postings from August 2016

[perl #129152] mkpport adds quotes to $perl even if it's alreadyquoted

Thread Previous
From:
brian d foy
Date:
August 31, 2016 14:38
Subject:
[perl #129152] mkpport adds quotes to $perl even if it's alreadyquoted
Message ID:
rt-4.0.24-17177-1472654313-1600.129152-75-0@perl.org
# New Ticket Created by  "brian d foy" 
# Please include the string:  [perl #129152]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=129152 >


I'm compiling 5.25.4 from a path with a space character in it. It fails from a double double quoting issue that tries to run a command like:

    ""/Path/To Some/Place/perl"" ...

which_perl from MakeMaker::Test::Utils returns a path already quoted, like q("/Path/To Some/Place/perl"). The run subroutine in mkpport checks for whitespace in $perl and adds another layer of double quotes around the string if it finds whitespace. It should only do that if the value doesn't already have those quotes.


Thread Previous


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