quoting fun

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



122. AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS (torture.at:133): FAILED (tort
ure.at:271)  
 
is failing for me, I think due to the fun quoting from config.status at
 
  eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
where

ac_sed_extra: /^[ ]*VPATH[ ]*=/{ s/:*$(srcdir):*/:/ s/:*${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// } :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s&@configure_input@&file with funny \ ' \' $ & #!*? name. Generated from file with funny \ ' \' $ & #!*? name.in by configure.&;t t s&@top_builddir@&.&;t t s&@top_build_prefix@&&;t t s&@srcdir@&.&;t t s&@abs_srcdir@&/usr/src/local/autoconf.git/tests/testsuite.dir/122&;t t s&@top_srcdir@&.&;t t s&@abs_top_srcdir@&/usr/src/local/autoconf.git/tests/testsuite.dir/122&;t t s&@builddir@&.&;t t s&@abs_builddir@&/usr/src/local/autoconf.git/tests/testsuite.dir/122&;t t s&@abs_top_builddir@&/usr/src/local/autoconf.git/tests/testsuite.dir/122&;t t

and

ac_file_inputs: 'file with funny \ '\'' \'\'' $ & #!*? name.in'


In testsuite.dir/122 I can reproduce the failure quickly with

file='file with  funny \ '\'' \'\'' $ & #!*? name'
./config.status "--file=$file:$file.in"

in a sh script.

The error is:

sed: 12: "/^[    ]*VPATH[        ]*=/{
s/ ...": bad flag in substitute command: '#'

There are at least 2 problems. One is that that fun filename ends
up in $ac_sed_extra via $configure_input so a & appears which terminates
the s&..&..& prematurely leaving a # next.  The other is that
ac_file_inputs has lost the double space before the word funny that
existed in $file, but I haven't spotted where...

Thoughts?

Cheers,

Patrick
(oh yes - today's git head on yesterday's netbsd-current)


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux