develooper Front page | perl.perl5.porters | Postings from November 2009

Re: [perl #70912] -V does not escape whitespace in config_args

Thread Previous
From:
Graham Barr
Date:
November 30, 2009 07:09
Subject:
Re: [perl #70912] -V does not escape whitespace in config_args
Message ID:
3863549F-74CD-471A-AD91-6B40F981D151@pobox.com

On Nov 28, 2009, at 5:22 PM, Frank Wiegand (via RT) wrote:
>  % sh Configure -de -Dusedevel -DDEBUGGING=both -Doptimize='-g' -Dcc=ccache\ gcc -Dld=gcc "-Dprefix=/opt/perl/perl-1259411222/" -Dmad
> 
> -V:config_args should give me this line after compiling perl:
> 
>  % perl5.11.2 -V:config_args
>  config_args='-de -Dusedevel -DDEBUGGING=both -Doptimize=-g -Dcc=ccache gcc -Dld=gcc -Dprefix=/opt/perl/perl-1259411222/ -Dmad';
> 
> I can't find any documentation about config_args, but I expect it to
> look like my original configure line, because there is a big difference
> between C<-Dcc=ccache\ gcc> and C<-Dcc=ccache gcc>.

It is not possible for Config.pm to know what shell was used or will be used. So config_args will always be wrong for some shell

However each arg is available separately so the command line can be rebuilt, see config_arg0, config_arg1, ...config_argN

Graham.


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