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

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

Thread Previous
Graham Barr
November 30, 2009 07:09
Re: [perl #70912] -V does not escape whitespace in config_args
Message ID:

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


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About